diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-08-27 20:17:53 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-08-27 20:17:53 +0200 |
commit | f3a540f6d7fce1465c16647b209e14694a5291df (patch) | |
tree | 1c8ecd3cc762005560941121c369187975316eb3 /src/gallium/state_trackers | |
parent | a33e9ea3b9b7ac98d6e9bc385bbbe7eac2eb73d0 (diff) | |
download | external_mesa3d-f3a540f6d7fce1465c16647b209e14694a5291df.zip external_mesa3d-f3a540f6d7fce1465c16647b209e14694a5291df.tar.gz external_mesa3d-f3a540f6d7fce1465c16647b209e14694a5291df.tar.bz2 |
st/dri: Only ask for fake front buffer for single buffer visuals by default.
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_drawable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/dri_drawable.c b/src/gallium/state_trackers/dri/dri_drawable.c index e27d5c1..871ae07 100644 --- a/src/gallium/state_trackers/dri/dri_drawable.c +++ b/src/gallium/state_trackers/dri/dri_drawable.c @@ -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) |