projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ad5d44
)
st/wgl: fix WGL_SAMPLE_BUFFERS_ARB query
author
Brian Paul
<brianp@vmware.com>
Tue, 16 Jun 2015 21:32:45 +0000
(15:32 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
b/src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
index 91682d115a4f00131ac9ece8bb2d06e4f8a85138..9f466ba17358a453a6a80a929b1eb22bb0fa4ba1 100644
(file)
--- 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: