mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
i965: Stop updating FBO state on drawbuffers change.
The computed fields are updated appropriately as part of the normal draw call path due to _NEW_BUFFERS being set. Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
9d523e3372
commit
c39111509d
1 changed files with 0 additions and 8 deletions
|
|
@ -112,14 +112,6 @@ brw_update_draw_buffer(struct intel_context *intel)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Do this here, not core Mesa, since this function is called from
|
|
||||||
* many places within the driver.
|
|
||||||
*/
|
|
||||||
if (ctx->NewState & _NEW_BUFFERS) {
|
|
||||||
/* this updates the DrawBuffer->_NumColorDrawBuffers fields, etc */
|
|
||||||
_mesa_update_framebuffer(ctx);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
|
if (fb->_Status != GL_FRAMEBUFFER_COMPLETE_EXT) {
|
||||||
/* this may occur when we're called by glBindFrameBuffer() during
|
/* this may occur when we're called by glBindFrameBuffer() during
|
||||||
* the process of someone setting up renderbuffers, etc.
|
* the process of someone setting up renderbuffers, etc.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue