Fixed creating screenshots in menu screens

This commit is contained in:
Deve 2016-01-08 19:51:33 +01:00
parent 283c1a7c37
commit 280ad614bb

View File

@ -2198,7 +2198,6 @@ void IrrDriver::update(float dt)
GUIEngine::render(dt); GUIEngine::render(dt);
//m_video_driver->endScene(); //m_video_driver->endScene();
return;
} }
else if (!world) else if (!world)
{ {
@ -2208,15 +2207,14 @@ void IrrDriver::update(float dt)
GUIEngine::render(dt); GUIEngine::render(dt);
m_video_driver->endScene(); m_video_driver->endScene();
return;
} }
else
{
if (CVS->isGLSL()) if (CVS->isGLSL())
renderGLSL(dt); renderGLSL(dt);
else else
renderFixed(dt); renderFixed(dt);
if (world != NULL && world->getPhysics() != NULL) if (world != NULL && world->getPhysics() != NULL)
{ {
IrrDebugDrawer* debug_drawer = world->getPhysics()->getDebugDrawer(); IrrDebugDrawer* debug_drawer = world->getPhysics()->getDebugDrawer();
@ -2225,6 +2223,7 @@ void IrrDriver::update(float dt)
debug_drawer->beginNextFrame(); debug_drawer->beginNextFrame();
} }
} }
}
if (m_request_screenshot) doScreenShot(); if (m_request_screenshot) doScreenShot();