diff options
author | Eric Anholt <[email protected]> | 2009-05-10 10:08:32 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-05-12 10:21:00 -0700 |
commit | d4a42b0ce6455d03be70aa56aacd779be193aca4 (patch) | |
tree | 1f2928c976bc2e169aae1adf6f7f8dc27411eb0d | |
parent | aa422b262509bc0763a50f63a51a1730139ea52f (diff) |
intel: Skip the DRI2 renderbuffer update when doing Viewport on an FBO.
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |