only deleting with initialized textures

This commit is contained in:
devZoGok
2025-07-06 12:06:01 +03:00
parent f31a3e6e6d
commit fd1f54697c
+1 -1
View File
@@ -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;