]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.cpp
Move texture sampler state to a separate object
[libs/gl.git] / source / texture2d.cpp
index 72c84428ab6115ec4823a62d0264e0e21e989886..78011d3046ea5fb8189f823096fa8d730c651033 100644 (file)
@@ -191,6 +191,7 @@ void Texture2D::unload()
        allocated = 0;
        // TODO check which params actually need refreshing
        dirty_params = -1;
+       default_sampler.unload();
 }