intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.

(cherry picked from commit d4a42b0ce6)
This commit is contained in:
Eric Anholt 2009-05-10 10:08:32 -07:00
parent 2770107d87
commit 61a2c9668f

View file

@ -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);