st/wgl: fix WGL_SAMPLE_BUFFERS_ARB query
authorBrian Paul <brianp@vmware.com>
Tue, 16 Jun 2015 21:32:45 +0000 (15:32 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Jun 2015 14:45:00 +0000 (08:45 -0600)
Only report 1 for WGL_SAMPLE_BUFFERS_ARB if the number of samples
per pixel > 1.

Reviewed-by: Matthew McClure <mcclurem@vmware.com>
src/gallium/state_trackers/wgl/stw_ext_pixelformat.c

index 91682d115a4f00131ac9ece8bb2d06e4f8a85138..9f466ba17358a453a6a80a929b1eb22bb0fa4ba1 100644 (file)
@@ -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: