mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
intelRotateWindow: Only use back buffer and cliprects in very specific cases.
This commit is contained in:
parent
6f2bf34748
commit
bfbc1de02e
1 changed files with 6 additions and 7 deletions
|
|
@ -471,17 +471,16 @@ intelRotateWindow(struct intel_context *intel,
|
||||||
|
|
||||||
intel_fb = dPriv->driverPrivate;
|
intel_fb = dPriv->driverPrivate;
|
||||||
|
|
||||||
if ((srcBuf == BUFFER_BIT_BACK_LEFT && intel_fb->pf_current_page) ||
|
if ((srcBuf == BUFFER_BIT_BACK_LEFT && !intel_fb->pf_active)) {
|
||||||
(srcBuf == BUFFER_BIT_FRONT_LEFT && !intel_fb->pf_current_page)) {
|
|
||||||
src = intel->intelScreen->front_region;
|
|
||||||
clipRects = dPriv->pClipRects;
|
|
||||||
numClipRects = dPriv->numClipRects;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
src = intel->intelScreen->back_region;
|
src = intel->intelScreen->back_region;
|
||||||
clipRects = dPriv->pBackClipRects;
|
clipRects = dPriv->pBackClipRects;
|
||||||
numClipRects = dPriv->numBackClipRects;
|
numClipRects = dPriv->numBackClipRects;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
src = intel->intelScreen->front_region;
|
||||||
|
clipRects = dPriv->pClipRects;
|
||||||
|
numClipRects = dPriv->numClipRects;
|
||||||
|
}
|
||||||
|
|
||||||
if (src->cpp == 4) {
|
if (src->cpp == 4) {
|
||||||
format = GL_BGRA;
|
format = GL_BGRA;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue