diff --git a/texture.cpp b/texture.cpp index 37e29bd..3c072b1 100755 --- a/texture.cpp +++ b/texture.cpp @@ -61,7 +61,7 @@ namespace vb01{ } void Texture::loadImageData(ImageAsset *asset, int i){ - glDeleteTextures(1, &texture[i]); + if(texture) glDeleteTextures(1, &texture[i]); width = asset->width; height = asset->height;