mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
st/dri: Only ask for fake front buffer for single buffer visuals by default.
This commit is contained in:
parent
a33e9ea3b9
commit
f3a540f6d7
1 changed files with 2 additions and 1 deletions
|
|
@ -356,10 +356,11 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
|
|||
/* TODO incase of double buffer visual, delay fake creation */
|
||||
i = 0;
|
||||
drawable->attachments[i++] = __DRI_BUFFER_FRONT_LEFT;
|
||||
drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
|
||||
|
||||
if (visual->doubleBufferMode)
|
||||
drawable->attachments[i++] = __DRI_BUFFER_BACK_LEFT;
|
||||
else
|
||||
drawable->attachments[i++] = __DRI_BUFFER_FAKE_FRONT_LEFT;
|
||||
if (visual->depthBits)
|
||||
drawable->attachments[i++] = __DRI_BUFFER_DEPTH;
|
||||
if (visual->stencilBits)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue