deleting old texture data from the GPU

This commit is contained in:
devZoGok
2025-06-15 18:22:00 +03:00
parent a09f47535e
commit 6f7702cb19
+2
View File
@@ -61,6 +61,8 @@ namespace vb01{
}
void Texture::loadImageData(ImageAsset *asset, int i){
glDeleteTextures(1, &texture[i]);
width = asset->width;
height = asset->height;