projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33e9ea
)
st/dri: Only ask for fake front buffer for single buffer visuals by default.
author
Michel Dänzer
<daenzer@vmware.com>
Thu, 27 Aug 2009 18:17:53 +0000
(20:17 +0200)
committer
Michel Dänzer
<daenzer@vmware.com>
Thu, 27 Aug 2009 18:17:53 +0000
(20:17 +0200)
src/gallium/state_trackers/dri/dri_drawable.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/dri_drawable.c
b/src/gallium/state_trackers/dri/dri_drawable.c
index e27d5c12a82e051600d1677ed2830c330af1800a..871ae074ab16ea4d25deb4326a20c3e56fe949c1 100644
(file)
--- 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)