projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fceae
)
mesa: reduce calls to _mesa_test_framebuffer_completeness()
author
Brian Paul
<brianp@vmware.com>
Tue, 1 Mar 2011 01:24:25 +0000
(18:24 -0700)
committer
Brian Paul
<brianp@vmware.com>
Tue, 1 Mar 2011 01:24:25 +0000
(18:24 -0700)
when updating/validating framebuffer state. The _Status field is set
to zero when we need to recompute _Status. Otherwise, it's up to date.
src/mesa/main/framebuffer.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/framebuffer.c
b/src/mesa/main/framebuffer.c
index 948b3b7b5a23623e4a0e0533df1a0deef5af9b91..139a842925fba34c54172021d1343ff0bc422733 100644
(file)
--- 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);
}
}