Commit aba4719b authored by cutealien's avatar cutealien

Added missing else (found by zerochen__)


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4081 dfc29bdd-3216-0410-991c-e03cc46cb475
parent d8641f7f
......@@ -178,6 +178,7 @@ bool COpenGLDriver::initDriver(CIrrDeviceWin32* device)
{
pfd.cDepthBits = 24;
}
else
if (i == 3)
{
if (Params.Bits!=16)
......@@ -4442,6 +4443,7 @@ IImage* COpenGLDriver::createScreenShot(video::ECOLOR_FORMAT format, video::E_RE
}
glReadBuffer(tgt);
glReadPixels(0, 0, ScreenSize.Width, ScreenSize.Height, fmt, type, pixels);
testGLError();
glReadBuffer(GL_BACK);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment