From: Mikko Rasa Date: Mon, 25 Jan 2021 23:47:05 +0000 (+0200) Subject: Clear Texture2D's allocation flags when unloading X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=96340a856489e026b27377482b358c7ca2cf74b6;p=libs%2Fgl.git Clear Texture2D's allocation flags when unloading --- 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; }