From: Mikko Rasa Date: Sun, 28 Sep 2014 18:07:33 +0000 (+0300) Subject: Fix TexGen unbinding X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6d8c517df7d76605f92b756c59f3f23570a688ff;p=libs%2Fgl.git Fix TexGen unbinding --- diff --git a/source/texgen.cpp b/source/texgen.cpp index 0114b2b7..4310d19a 100644 --- a/source/texgen.cpp +++ b/source/texgen.cpp @@ -51,7 +51,10 @@ void TexGen::unbind_from(unsigned i, TexCoordComponent c) { TexUnit &unit = TexUnit::get_unit(i); if(unit.set_texgen(coord_index(c), 0)) + { + unit.bind(); disable(GL_TEXTURE_GEN_S+coord_index(c)); + } } unsigned TexGen::coord_index(TexCoordComponent c)