Added missing else (found by zerochen__)

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4081 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
cutealien 2012-02-14 16:58:36 +00:00
parent d8641f7fd7
commit aba4719bb6

View File

@ -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);
}