Destroy white texture in GL14 device on exit

master
krzys-h 2016-03-25 17:10:21 +01:00
parent d812db19f8
commit 17bcbddef1
1 changed files with 2 additions and 0 deletions

View File

@ -393,6 +393,8 @@ void CGLDevice::Destroy()
// Delete the remaining textures
// Should not be strictly necessary, but just in case
DestroyAllTextures();
glDeleteTextures(1, &m_whiteTexture);
m_whiteTexture = 0;
m_lights.clear();
m_lightsEnabled.clear();