From c6d64dab2a0da9bcc8165ef7123bcb8e2dccfe31 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Mon, 8 Sep 2014 20:06:37 +0300 Subject: [PATCH] Set dirty_params when unloading textures This ensures that things like MIN_FILTER get set correctly when it is reloaded. --- source/texture2d.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/texture2d.cpp b/source/texture2d.cpp index f36cadae..2da1c252 100644 --- a/source/texture2d.cpp +++ b/source/texture2d.cpp @@ -143,6 +143,8 @@ void Texture2D::unload() { glDeleteTextures(1, &id); id = 0; + // TODO check which params actually need refreshing + dirty_params = -1; } -- 2.43.0