mirror of
https://github.com/leozide/leocad.git
synced 2026-09-15 19:13:23 +00:00
Fixed crash unloading textures.
This commit is contained in:
@@ -91,6 +91,7 @@ bool lcTexture::Load(lcFile& File, int Flags)
|
||||
|
||||
void lcTexture::Unload()
|
||||
{
|
||||
glDeleteTextures(1, &mTexture);
|
||||
if (mTexture)
|
||||
glDeleteTextures(1, &mTexture);
|
||||
mTexture = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user