]> git.tdb.fi Git - libs/gl.git/commitdiff
Set dirty_params when unloading textures
authorMikko Rasa <tdb@tdb.fi>
Mon, 8 Sep 2014 17:06:37 +0000 (20:06 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 8 Sep 2014 17:06:37 +0000 (20:06 +0300)
This ensures that things like MIN_FILTER get set correctly when it is
reloaded.

source/texture2d.cpp

index f36cadae09aaa21f6abd7f97729d16bf34f6d714..2da1c25245b1064cf8da073c8e9c4d919fb9417a 100644 (file)
@@ -143,6 +143,8 @@ void Texture2D::unload()
 {
        glDeleteTextures(1, &id);
        id = 0;
+       // TODO check which params actually need refreshing
+       dirty_params = -1;
 }