]> git.tdb.fi Git - libs/gl.git/blobdiff - source/shadowmap.cpp
Rewrite Bind as two different classes
[libs/gl.git] / source / shadowmap.cpp
index 8151a7cffe48c41429005470ac3595916fb309e1..21e67c38a5efeeb08a20fcbd917dc2b767f9ed39 100644 (file)
@@ -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");