X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fshadowmap.cpp;h=21e67c38a5efeeb08a20fcbd917dc2b767f9ed39;hp=8151a7cffe48c41429005470ac3595916fb309e1;hb=f33a98b1a044c8ac7b12778cbca6c4a124875e4a;hpb=a443cba337d8d69e23e64e19334d222e750c28b1 diff --git a/source/shadowmap.cpp b/source/shadowmap.cpp index 8151a7cf..21e67c38 100644 --- a/source/shadowmap.cpp +++ b/source/shadowmap.cpp @@ -104,7 +104,7 @@ void ShadowMap::setup_frame() const shadow_matrix.translate(-0.5, -0.5, depth_bias/size-0.5); shadow_matrix.invert(); - Bind bind_fbo(fbo, true); + BindRestore bind_fbo(fbo); Bind bind_depth(DepthTest::lequal()); fbo.clear(DEPTH_BUFFER_BIT); renderable.render("shadow");