intelRotateWindow: Only use back buffer and cliprects in very specific cases.
authorMichel Dänzer <michel@tungstengraphics.com>
Thu, 15 Feb 2007 17:41:40 +0000 (18:41 +0100)
committerMichel Dänzer <michel@tungstengraphics.com>
Tue, 20 Feb 2007 18:15:44 +0000 (19:15 +0100)
src/mesa/drivers/dri/i915tex/intel_buffers.c

index fdb6ea94441513aff93127502a84852dddbb2d86..f51b0af1640b67e77cf37d67bbd0d647049fd6ba 100644 (file)
@@ -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;