mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 19:00:23 +01: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;
|
||||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue