Module: Mesa
Branch: master
Commit: b8249de646e75f8af0c84d7f06b7805fe555e13e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8249de646e75f8af0c84d7f06b7805fe555e13e

Author: Brian Paul <[email protected]>
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 <[email protected]>

---

 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:

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to