X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture2d.cpp;fp=source%2Ftexture2d.cpp;h=47e0c7434d0ef56c7fbf892b0ee45a31f4552710;hp=08383526728bb7a239b8551c910c75c6a2ff2f03;hb=96340a856489e026b27377482b358c7ca2cf74b6;hpb=d5790b342a54e6fbf4d3a443edad1505db0a3614 diff --git a/source/texture2d.cpp b/source/texture2d.cpp index 08383526..47e0c743 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -188,6 +188,7 @@ void Texture2D::unload() { glDeleteTextures(1, &id); id = 0; + allocated = 0; // TODO check which params actually need refreshing dirty_params = -1; }