]> git.tdb.fi Git - libs/gl.git/blobdiff - source/pipeline.cpp
Rewrite Bind as two different classes
[libs/gl.git] / source / pipeline.cpp
index 8229515f96d6830846f0505590d811329715c946..0546a4e847829f33844cf6236db2047816ba0b2f 100644 (file)
@@ -147,9 +147,7 @@ void Pipeline::render(Renderer &renderer, const Tag &tag) const
                setup_frame();
 
        const Framebuffer *out_fbo = Framebuffer::current();
-       /* Binding the current object is a no-op, but this will restore the original
-       FBO in case an exception is thrown. */
-       Bind restore_fbo(out_fbo, true);
+       // XXX Make sure the correct FBO is restored if an exception is thrown
 
        if(target[0])
        {