Commit bf910125 authored by bitplane's avatar bitplane

Added workaround for SDL resetting glFrontFace(GL_CCW) after driver creation

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2219 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e7f7156e
......@@ -667,6 +667,12 @@ bool COpenGLDriver::beginScene(bool backBuffer, bool zBuffer, SColor color,
{
CNullDriver::beginScene(backBuffer, zBuffer, color, windowId, sourceRect);
#if defined(_IRR_USE_SDL_DEVICE_)
// todo: SDL sets glFrontFace(GL_CCW) after driver creation,
// it would be better if this was fixed elsewhere.
glFrontFace(GL_CW);
#endif
clearBuffers(backBuffer, zBuffer, false, color);
return true;
}
......
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