DRI2: Force allocation of real-front buffer for non-windows as well
For redirected rendering we end up with pixmaps (which the app thinks are windows) that are double buffered. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Pierre Willenbrock <pierre@pirsoft.de>
This commit is contained in:
parent
57aff88c7d
commit
0d9d3f3e36
|
@ -206,18 +206,21 @@ do_get_buffers(DrawablePtr pDraw, int *width, int *height,
|
||||||
* attachments. The counting logic in the loop accounts for the case
|
* attachments. The counting logic in the loop accounts for the case
|
||||||
* where the client requests both the fake and real front-buffer.
|
* where the client requests both the fake and real front-buffer.
|
||||||
*/
|
*/
|
||||||
if (pDraw->type == DRAWABLE_WINDOW) {
|
if (attachment == DRI2BufferBackLeft) {
|
||||||
if (attachment == DRI2BufferBackLeft) {
|
need_real_front++;
|
||||||
need_real_front++;
|
front_format = format;
|
||||||
front_format = format;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (attachment == DRI2BufferFrontLeft) {
|
if (attachment == DRI2BufferFrontLeft) {
|
||||||
need_real_front--;
|
need_real_front--;
|
||||||
|
front_format = format;
|
||||||
|
|
||||||
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
need_fake_front++;
|
need_fake_front++;
|
||||||
front_format = format;
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pDraw->type == DRAWABLE_WINDOW) {
|
||||||
if (attachment == DRI2BufferFakeFrontLeft) {
|
if (attachment == DRI2BufferFakeFrontLeft) {
|
||||||
need_fake_front--;
|
need_fake_front--;
|
||||||
have_fake_front = 1;
|
have_fake_front = 1;
|
||||||
|
|
Loading…
Reference in New Issue