summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-06-16 15:32:45 -0600
committerBrian Paul <[email protected]>2015-06-19 08:45:00 -0600
commitb8249de646e75f8af0c84d7f06b7805fe555e13e (patch)
treeb0a274a70f2c4ff1a5a0acf7bf38391d166399c7 /src/gallium/state_trackers/wgl
parent5ad5d44af57a815c6eb16d4d61070135acb55f37 (diff)
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]>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_pixelformat.c2
1 files changed, 1 insertions, 1 deletions
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: