Clean up when closing the window

This commit is contained in:
Flakebi
2014-06-04 12:53:11 +02:00
parent 39e5b57233
commit 4ae98f4610

View File

@@ -1913,6 +1913,8 @@ void IrrDriver::update(float dt)
// =================================
if (!m_device->run())
{
GUIEngine::cleanUp();
GUIEngine::deallocate();
main_loop->abort();
return;
}
@@ -2401,4 +2403,5 @@ FrameBuffer& IrrDriver::getFBO(TypeFBO which)
GLuint IrrDriver::getDepthStencilTexture()
{
return m_rtts->getDepthStencilTexture();
}
}