st/dri: Make sure we always request a fake front.
authorThomas Hellstrom <thellstrom@vmware.com>
Wed, 13 Jan 2010 16:40:41 +0000 (17:40 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 13 Jan 2010 16:45:21 +0000 (17:45 +0100)
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>
src/gallium/state_trackers/dri/dri_drawable.c

index c4dfb0c41f81dbe75b413cdb0e24803efb63da9b..3c17ccde0abad34d8971c072d22f6a729da93fe9 100644 (file)
@@ -365,11 +365,10 @@ 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 && visual->stencilBits)
       drawable->attachments[i++] = __DRI_BUFFER_DEPTH_STENCIL;
    else if (visual->depthBits)