From: ehofman Date: Wed, 9 Jul 2003 20:51:04 +0000 (+0000) Subject: Prevent deleting the texture data for a second time in the destructor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=inline;h=d4c0c8940b71ab168311ddaf0ffc9c0c8acf46d4;p=simgear.git Prevent deleting the texture data for a second time in the destructor --- 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!