From bfbc1de02ea5a26dc9c05bdd267aa933f04891c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Thu, 15 Feb 2007 18:41:40 +0100 Subject: [PATCH] intelRotateWindow: Only use back buffer and cliprects in very specific cases. --- src/mesa/drivers/dri/i915tex/intel_buffers.c | 13 ++++++------- 1 file 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 fdb6ea9..f51b0af 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; -- 2.7.4