mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +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()
|
void lcTexture::Unload()
|
||||||
{
|
{
|
||||||
|
if (mTexture)
|
||||||
glDeleteTextures(1, &mTexture);
|
glDeleteTextures(1, &mTexture);
|
||||||
mTexture = 0;
|
mTexture = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue