aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/fbobject.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-19 17:34:19 -0700
committerBrian Paul <[email protected]>2009-01-22 15:16:17 -0700
commit1f32c410dd06d73e2ad007a6ce755437884e92c3 (patch)
tree5f20968cd1bc118063bc44f767de06a502e5e4f6 /src/mesa/main/fbobject.c
parent283edbe31177522d006ab37ebaf33a6e31f0a34e (diff)
mesa: call fbo_incomplete() if driver marks FBO as incomplete (debug only)
Diffstat (limited to 'src/mesa/main/fbobject.c')
-rw-r--r--src/mesa/main/fbobject.c3
1 files changed, 3 insertions, 0 deletions
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) {