st/dri: Make sure we always request a fake front.
This should be the correct, but sub-optimal way to handle things on pre-1.7 servers. For servers that automatically adds a fake front we should never request the fake front and handle the reply differently. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
This commit is contained in:
parent
1b333453e4
commit
a9086f2d17
|
@ -365,11 +365,10 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
|
||||||
/* TODO incase of double buffer visual, delay fake creation */
|
/* TODO incase of double buffer visual, delay fake creation */
|
||||||
i = 0;
|
i = 0;
|
||||||
drawable->attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
|
drawable->attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
|
||||||
|
drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
|
||||||
|
|
||||||
if (visual->doubleBufferMode)
|
if (visual->doubleBufferMode)
|
||||||
drawable->attachments[i++] = __DRI_BUFFER_BACK_LEFT;
|
drawable->attachments[i++] = __DRI_BUFFER_BACK_LEFT;
|
||||||
else
|
|
||||||
drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
|
|
||||||
if (visual->depthBits && visual->stencilBits)
|
if (visual->depthBits && visual->stencilBits)
|
||||||
drawable->attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL;
|
drawable->attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL;
|
||||||
else if (visual->depthBits)
|
else if (visual->depthBits)
|
||||||
|
|
Loading…
Reference in New Issue