From: Mikko Rasa Date: Mon, 8 Sep 2014 17:06:37 +0000 (+0300) Subject: Set dirty_params when unloading textures X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=c6d64dab2a0da9bcc8165ef7123bcb8e2dccfe31 Set dirty_params when unloading textures This ensures that things like MIN_FILTER get set correctly when it is reloaded. --- 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; }