summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-02-28 18:24:25 -0700
committerBrian Paul <brianp@vmware.com>2011-02-28 18:24:25 -0700
commit1f9a0a4e6e5566c36c781add5f1e62af3efdfb58 (patch)
treed30f2b99b78bc3dade8fca975e26f0fc9491a2c4 /src/mesa
parentb0fceae22f008f3963a392ebd57d7d2a095a5e05 (diff)
mesa: reduce calls to _mesa_test_framebuffer_completeness()
when updating/validating framebuffer state. The _Status field is set to zero when we need to recompute _Status. Otherwise, it's up to date.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/framebuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/framebuffer.c b/src/mesa/main/framebuffer.c
index 948b3b7b5a..139a842925 100644
--- a/src/mesa/main/framebuffer.c
+++ b/src/mesa/main/framebuffer.c
@@ -802,7 +802,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 != GL_FRAMEBUFFER_COMPLETE) {
+ if (fb->_Status == 0) {
_mesa_test_framebuffer_completeness(ctx, fb);
}
}