Fixed Segfault from DeleteImage() and DeleteMesh()

This commit is contained in:
n00b
2025-04-12 13:26:00 -04:00
parent b67d63d32c
commit edb6462752
7 changed files with 215 additions and 199 deletions

View File

@@ -2467,7 +2467,7 @@ void rc_deleteImage(int img_id)
if(rc_image[img_id].image)
{
rc_image[img_id].image->drop();
VideoDriver->removeTexture(rc_image[img_id].image);
rc_image[img_id].image = NULL;
rc_image[img_id].alpha = 255;
}