mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Fixed crash unloading textures.
This commit is contained in:
parent
31c8d6b977
commit
93b55de7ed
1 changed files with 2 additions and 1 deletions
|
@ -91,6 +91,7 @@ bool lcTexture::Load(lcFile& File, int Flags)
|
|||
|
||||
void lcTexture::Unload()
|
||||
{
|
||||
if (mTexture)
|
||||
glDeleteTextures(1, &mTexture);
|
||||
mTexture = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue