From: José Fonseca Date: Thu, 2 Dec 2010 20:21:39 +0000 (+0000) Subject: wgl: Fix visual's buffer_mask configuration. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63df5a464e984af771b3896d05baa258912ac202;p=mesa.git wgl: Fix visual's buffer_mask configuration. --- diff --git a/src/gallium/state_trackers/wgl/stw_pixelformat.c b/src/gallium/state_trackers/wgl/stw_pixelformat.c index 18ac4823696..5ede1d43220 100644 --- a/src/gallium/state_trackers/wgl/stw_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_pixelformat.c @@ -185,7 +185,7 @@ stw_pixelformat_add( */ pfi->stvis.buffer_mask = ST_ATTACHMENT_FRONT_LEFT_MASK; if (doublebuffer) - pfi->stvis.buffer_mask = ST_ATTACHMENT_BACK_LEFT_MASK; + pfi->stvis.buffer_mask |= ST_ATTACHMENT_BACK_LEFT_MASK; pfi->stvis.color_format = color->format; pfi->stvis.depth_stencil_format = depth->format;