From: Eric Anholt Date: Sun, 10 May 2009 17:08:32 +0000 (-0700) Subject: intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4a42b0ce6455d03be70aa56aacd779be193aca4;p=mesa.git intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO. --- diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 8b3e50f9b62..7c77a1c8194 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -393,7 +393,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);