Prevent deleting the texture data for a second time in the destructor

This commit is contained in:
ehofman 2003-07-09 20:51:04 +00:00
parent d4134195ea
commit d4c0c8940b

View 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!