From 17bcbddef1d23777e67d7d93bb8cdaab3643f796 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Fri, 25 Mar 2016 17:10:21 +0100 Subject: [PATCH] Destroy white texture in GL14 device on exit --- src/graphics/opengl/gldevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp index 1e15e2d1..54f2a1fc 100644 --- a/src/graphics/opengl/gldevice.cpp +++ b/src/graphics/opengl/gldevice.cpp @@ -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();