OSDN Git Service

mesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only)
authorBrian Paul <brianp@vmware.com>
Tue, 20 Jan 2009 00:34:19 +0000 (17:34 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:16:17 +0000 (15:16 -0700)
src/mesa/main/fbobject.c

index ad49655..cdfa291 100644 (file)
@@ -574,6 +574,9 @@ _mesa_test_framebuffer_completeness(GLcontext *ctx, struct gl_framebuffer *fb)
    /* ... but the driver may say the FB is incomplete: */
    if (ctx->Driver.ValidateFramebuffer) {
       ctx->Driver.ValidateFramebuffer(ctx, fb);
+      if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
+         fbo_incomplete("driver marked FBO as incomplete", -1);
+      }
    }
 
    if (fb->_Status == GL_FRAMEBUFFER_COMPLETE_EXT) {