intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
authorEric Anholt <eric@anholt.net>
Sun, 10 May 2009 17:08:32 +0000 (10:08 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 May 2009 17:21:00 +0000 (10:21 -0700)
src/mesa/drivers/dri/intel/intel_context.c

index 8b3e50f9b62cc51b6df86ca96772f6d8a5e0c098..7c77a1c8194cae4c2ff4daf15c46241f3568a708 100644 (file)
@@ -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);