From 96340a856489e026b27377482b358c7ca2cf74b6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 26 Jan 2021 01:47:05 +0200 Subject: [PATCH] Clear Texture2D's allocation flags when unloading --- source/texture2d.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.43.0