Prevent deleting the texture data for a second time in the destructor
This commit is contained in:
parent
d4134195ea
commit
d4c0c8940b
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user