]> git.mxchange.org Git - simgear.git/blobdiff - simgear/screen/texture.cxx
Fix a problem with systems that don't define GLXPbufferSGIX or GLXFBConfigSGIX
[simgear.git] / simgear / screen / texture.cxx
index 184f6e2dd35b39ef2928f30656fcb572f11caf34..56fd95409d4ddb84492c09daa3254e4176e79bfa 100644 (file)
@@ -49,7 +49,7 @@ SGTexture::SGTexture(unsigned int width, unsigned int height)
 
 SGTexture::~SGTexture()
 {
-    delete texture_data;
+    delete[] texture_data;
 
     if ( texture_id != 0 ) {
         free_id();