]> git.tdb.fi Git - libs/gl.git/commitdiff
Clear Texture2D's allocation flags when unloading
authorMikko Rasa <tdb@tdb.fi>
Mon, 25 Jan 2021 23:47:05 +0000 (01:47 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 25 Jan 2021 23:47:05 +0000 (01:47 +0200)
source/texture2d.cpp

index 08383526728bb7a239b8551c910c75c6a2ff2f03..47e0c7434d0ef56c7fbf892b0ee45a31f4552710 100644 (file)
@@ -188,6 +188,7 @@ void Texture2D::unload()
 {
        glDeleteTextures(1, &id);
        id = 0;
+       allocated = 0;
        // TODO check which params actually need refreshing
        dirty_params = -1;
 }