From 6d8c517df7d76605f92b756c59f3f23570a688ff Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 28 Sep 2014 21:07:33 +0300 Subject: [PATCH] Fix TexGen unbinding --- source/texgen.cpp | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.45.2