mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
(cherry picked from commit d4a42b0ce6)
This commit is contained in:
parent
2770107d87
commit
61a2c9668f
1 changed files with 1 additions and 1 deletions
|
|
@ -394,7 +394,7 @@ intel_viewport(GLcontext *ctx, GLint x, GLint y, GLsizei w, GLsizei h)
|
|||
if (!driContext->driScreenPriv->dri2.enabled)
|
||||
return;
|
||||
|
||||
if (!intel->internal_viewport_call) {
|
||||
if (!intel->internal_viewport_call && ctx->DrawBuffer->Name == 0) {
|
||||
intel_update_renderbuffers(driContext, driContext->driDrawablePriv);
|
||||
if (driContext->driDrawablePriv != driContext->driReadablePriv)
|
||||
intel_update_renderbuffers(driContext, driContext->driReadablePriv);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue