wgl: Fix visual's buffer_mask configuration.

This commit is contained in:
José Fonseca
2010-12-02 20:21:39 +00:00
parent 43121f2086
commit 63df5a464e
@@ -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;