"include/svn:/svn.code.sf.net/p/irrlicht/code/trunk@4283" did not exist on "23b8381c72a66e9159ee66c6151c58e1a20ac74d"
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) ...@@ -178,6 +178,7 @@ bool COpenGLDriver::initDriver(CIrrDeviceWin32* device)
{ {
pfd.cDepthBits = 24; pfd.cDepthBits = 24;
} }
else
if (i == 3) if (i == 3)
{ {
if (Params.Bits!=16) if (Params.Bits!=16)
...@@ -4442,6 +4443,7 @@ IImage* COpenGLDriver::createScreenShot(video::ECOLOR_FORMAT format, video::E_RE ...@@ -4442,6 +4443,7 @@ IImage* COpenGLDriver::createScreenShot(video::ECOLOR_FORMAT format, video::E_RE
} }
glReadBuffer(tgt); glReadBuffer(tgt);
glReadPixels(0, 0, ScreenSize.Width, ScreenSize.Height, fmt, type, pixels); glReadPixels(0, 0, ScreenSize.Width, ScreenSize.Height, fmt, type, pixels);
testGLError();
glReadBuffer(GL_BACK); 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