mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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.
This commit is contained in:
parent
b0fceae22f
commit
1f9a0a4e6e
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue