summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-03-13 17:39:14 +0800
committerChia-I Wu <[email protected]>2010-03-13 17:40:05 +0800
commit418b9ac2990fc6809de359a862ee809d3b86343c (patch)
tree1776365d2c5246e78ccb1219a45ab13a581c11cf /src/gallium
parentf91d8c6885c8944322991115b739cee3e2fdf6bd (diff)
st/glx: Correctly set buffer_mask of a visual.
Stupid typos again..
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/glx/xlib/xm_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/glx/xlib/xm_api.c b/src/gallium/state_trackers/glx/xlib/xm_api.c
index 82384a4d284..94c0ad496d4 100644
--- a/src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/src/gallium/state_trackers/glx/xlib/xm_api.c
@@ -666,11 +666,11 @@ XMesaVisual XMesaCreateVisual( Display *display,
v->stvis.buffer_mask = ST_ATTACHMENT_FRONT_LEFT_MASK;
if (db_flag)
- v->stvis.buffer_mask = ST_ATTACHMENT_BACK_LEFT_MASK;
+ v->stvis.buffer_mask |= ST_ATTACHMENT_BACK_LEFT_MASK;
if (stereo_flag) {
- v->stvis.buffer_mask = ST_ATTACHMENT_FRONT_RIGHT_MASK;
+ v->stvis.buffer_mask |= ST_ATTACHMENT_FRONT_RIGHT_MASK;
if (db_flag)
- v->stvis.buffer_mask = ST_ATTACHMENT_BACK_RIGHT_MASK;
+ v->stvis.buffer_mask |= ST_ATTACHMENT_BACK_RIGHT_MASK;
}
v->stvis.color_format = choose_pixel_format(v);