Mesa (master): st/wgl: fix WGL_SAMPLE_BUFFERS_ARB query
Brian Paul
brianp at kemper.freedesktop.org
Fri Jun 19 17:21:39 UTC 2015
Module: Mesa
Branch: master
Commit: b8249de646e75f8af0c84d7f06b7805fe555e13e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8249de646e75f8af0c84d7f06b7805fe555e13e
Author: Brian Paul <brianp at vmware.com>
Date: Tue Jun 16 15:32:45 2015 -0600
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 <mcclurem at vmware.com>
---
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 91682d1..9f466ba 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:
More information about the mesa-commit
mailing list