]> git.mxchange.org Git - simgear.git/commitdiff
Prevent deleting the texture data for a second time in the destructor
authorehofman <ehofman>
Wed, 9 Jul 2003 20:51:04 +0000 (20:51 +0000)
committerehofman <ehofman>
Wed, 9 Jul 2003 20:51:04 +0000 (20:51 +0000)
simgear/screen/texture.hxx

index 7a947429e207d09e51a8c2e8d2808ba0e9cb74c4..71609c5093d16ce7c9348e80e1273b65a50c7cd8 100644 (file)
@@ -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!