Mesa (master): Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"

Brian Paul brianp at kemper.freedesktop.org
Wed Mar 2 16:13:05 UTC 2011


Module: Mesa
Branch: master
Commit: 5f4d0cc6bcfb34a68a72ebc4091f3ab0cf43f90c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5f4d0cc6bcfb34a68a72ebc4091f3ab0cf43f90c

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Mar  2 09:11:43 2011 -0700

Revert "mesa: reduce calls to _mesa_test_framebuffer_completeness()"

This reverts commit 1f9a0a4e6e5566c36c781add5f1e62af3efdfb58.

This caused trouble with Lightsmark w/ i965 driver and fbo/fbo-blit-d24s8
(see bug 34894).  It's probably something simple but no time to debug now.

---

 src/mesa/main/framebuffer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 227b214..8916441 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -799,7 +799,7 @@ update_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb)
       /* This is a user-created framebuffer.
        * Completeness only matters for user-created framebuffers.
        */
-      if (fb->_Status == 0) {
+      if (fb->_Status != GL_FRAMEBUFFER_COMPLETE) {
          _mesa_test_framebuffer_completeness(ctx, fb);
       }
    }




More information about the mesa-commit mailing list