From: Brian Paul Date: Tue, 16 Jun 2015 21:32:45 +0000 (-0600) Subject: st/wgl: fix WGL_SAMPLE_BUFFERS_ARB query X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8249de646e75f8af0c84d7f06b7805fe555e13e;p=mesa.git st/wgl: fix WGL_SAMPLE_BUFFERS_ARB query Only report 1 for WGL_SAMPLE_BUFFERS_ARB if the number of samples per pixel > 1. Reviewed-by: Matthew McClure --- diff --git a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c index 91682d115a4..9f466ba1735 100644 --- a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c +++ b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c @@ -232,7 +232,7 @@ stw_query_attrib( break; case WGL_SAMPLE_BUFFERS_ARB: - *pvalue = 1; + *pvalue = (pfi->stvis.samples > 1); break; case WGL_SAMPLES_ARB: