Disable depth test in non dynamic light mode.

Just in case...
This commit is contained in:
Vincent Lejeune 2014-08-07 02:47:07 +02:00
parent 7c31275704
commit 8544ff10e9

View File

@ -383,6 +383,8 @@ void IrrDriver::renderScene(scene::ICameraSceneNode * const camnode, unsigned po
if (!UserConfigParams::m_dynamic_lights && !forceRTT)
{
glDisable(GL_FRAMEBUFFER_SRGB);
glDisable(GL_DEPTH_TEST);
glDepthMask(GL_FALSE);
return;
}