mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
only deleting with initialized textures
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user