]> git.cworth.org Git - apitrace/commitdiff
glstate: Bind the bound draw fbo for read before dumping.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 10 May 2013 20:43:11 +0000 (21:43 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 10 May 2013 20:54:30 +0000 (21:54 +0100)
Otherwise we'll dump the currently bound read fbo.

retrace/glstate_images.cpp

index 3f6d4387b5aed1a2bf75288bd439cf2cf136946e..759ed5925839d5479c3ad9d7a7612508efc4daad 100644 (file)
@@ -1213,9 +1213,11 @@ dumpFramebuffer(JSONWriter &json, Context &context)
                                              boundDrawFbo, draw_buffer0,
                                              colorRb, depthRb, stencilRb,
                                              rbs, &numRbs);
+        } else {
+            glBindFramebuffer(GL_READ_FRAMEBUFFER, boundDrawFbo);
         }
 
-        dumpFramebufferAttachments(json, context, GL_DRAW_FRAMEBUFFER);
+        dumpFramebufferAttachments(json, context, GL_READ_FRAMEBUFFER);
 
         if (multisample) {
             glBindRenderbuffer(GL_RENDERBUFFER, boundRb);