From: Brian Paul Date: Tue, 20 Jan 2009 00:34:19 +0000 (-0700) Subject: mesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only) X-Git-Tag: android-x86-1.6~16^2~1556^2~208 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=1f32c410dd06d73e2ad007a6ce755437884e92c3;p=android-x86%2Fexternal-mesa.git mesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only) --- diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index ad4965550a4..cdfa291e109 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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) {