]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.cpp
Clear Texture2D's allocation flags when unloading
[libs/gl.git] / 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;
 }