From: Mikko Rasa Date: Sat, 1 Nov 2014 00:39:06 +0000 (+0200) Subject: Set the rendered flag before doing anything else X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=c225025178a397a6ec7c21b686e3758f5f5d3cb6;p=libs%2Fgl.git Set the rendered flag before doing anything else Prevents recursion back into ShadowMap::setup_frame from the rendereable. --- diff --git a/source/shadowmap.cpp b/source/shadowmap.cpp index dd689935..372fa113 100644 --- a/source/shadowmap.cpp +++ b/source/shadowmap.cpp @@ -61,8 +61,8 @@ void ShadowMap::setup_frame() const if(rendered) return; - renderable.setup_frame(); rendered = true; + renderable.setup_frame(); const Vector4 &lpos = light.get_position(); Vector3 back;