From: Mikko Rasa Date: Mon, 25 Nov 2013 18:29:32 +0000 (+0200) Subject: Unbind Lighting in Renderer destructor X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=1fd01d88c69f7814b2d3e1b12cf0d257fffa6db7;p=libs%2Fgl.git Unbind Lighting in Renderer destructor This solves a problem where the same lightning would get bound later and retain an incorrect matrix due to already being bound. It's not really a proper fix but works in the most common cases. --- diff --git a/source/renderer.cpp b/source/renderer.cpp index 36685b47..c56216ed 100644 --- a/source/renderer.cpp +++ b/source/renderer.cpp @@ -51,6 +51,7 @@ Renderer::~Renderer() Texturing::unbind(); Texture::unbind_from(0); Material::unbind(); + Lighting::unbind(); Program::unbind(); Buffer::unbind_from(ELEMENT_ARRAY_BUFFER); WindingTest::unbind();