From b8249de646e75f8af0c84d7f06b7805fe555e13e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 16 Jun 2015 15:32:45 -0600 Subject: [PATCH] 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 --- src/gallium/state_trackers/wgl/stw_ext_pixelformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2