From d4c0c8940b71ab168311ddaf0ffc9c0c8acf46d4 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 9 Jul 2003 20:51:04 +0000 Subject: [PATCH] Prevent deleting the texture data for a second time in the destructor --- simgear/screen/texture.hxx | 1 + 1 file changed, 1 insertion(+) diff --git a/simgear/screen/texture.hxx b/simgear/screen/texture.hxx index 7a947429..71609c50 100644 --- a/simgear/screen/texture.hxx +++ b/simgear/screen/texture.hxx @@ -111,6 +111,7 @@ public: GL_RGB, GL_UNSIGNED_BYTE, texture_data ); delete texture_data; + texture_data = 0; } // Nowhere does it say that resident textures have to be in video memory! -- 2.39.2