Fixed crash unloading textures.

This commit is contained in:
leo 2013-01-06 15:36:15 +00:00
parent 31c8d6b977
commit 93b55de7ed

View file

@ -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;
} }