diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-15 18:41:40 +0100 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-02-20 19:15:44 +0100 |
commit | bfbc1de02ea5a26dc9c05bdd267aa933f04891c8 (patch) | |
tree | b15eb40bd074d0a960e5f1b83a454716564f787c | |
parent | 6f2bf34748c2dfcff09216132c48377db7d6f17d (diff) |
intelRotateWindow: Only use back buffer and cliprects in very specific cases.
-rw-r--r-- | src/mesa/drivers/dri/i915tex/intel_buffers.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mesa/drivers/dri/i915tex/intel_buffers.c b/src/mesa/drivers/dri/i915tex/intel_buffers.c index fdb6ea9444..f51b0af164 100644 --- a/src/mesa/drivers/dri/i915tex/intel_buffers.c +++ b/src/mesa/drivers/dri/i915tex/intel_buffers.c @@ -471,17 +471,16 @@ intelRotateWindow(struct intel_context *intel, intel_fb = dPriv->driverPrivate; - if ((srcBuf == BUFFER_BIT_BACK_LEFT && intel_fb->pf_current_page) || - (srcBuf == BUFFER_BIT_FRONT_LEFT && !intel_fb->pf_current_page)) { - src = intel->intelScreen->front_region; - clipRects = dPriv->pClipRects; - numClipRects = dPriv->numClipRects; - } - else { + if ((srcBuf == BUFFER_BIT_BACK_LEFT && !intel_fb->pf_active)) { src = intel->intelScreen->back_region; clipRects = dPriv->pBackClipRects; numClipRects = dPriv->numBackClipRects; } + else { + src = intel->intelScreen->front_region; + clipRects = dPriv->pClipRects; + numClipRects = dPriv->numClipRects; + } if (src->cpp == 4) { format = GL_BGRA; |