diff options
author | Brian Paul <[email protected]> | 2015-06-16 15:32:45 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-06-19 08:45:00 -0600 |
commit | 0925e5f5bc843237e534313dd5b99095ecbdd987 (patch) | |
tree | 3c79de5b8ee30850ce1eb767fbd02f2e1ec340d8 /src/gallium/state_trackers | |
parent | b8249de646e75f8af0c84d7f06b7805fe555e13e (diff) |
st/wgl: respect sample count when creating framebuffer surfaces
Use the visual/pixel format's sample count instead of zero.
Reviewed-by: Matthew McClure <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/wgl/stw_st.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_st.c b/src/gallium/state_trackers/wgl/stw_st.c index e95c37fcecd..6325ab1ce29 100644 --- a/src/gallium/state_trackers/wgl/stw_st.c +++ b/src/gallium/state_trackers/wgl/stw_st.c @@ -77,6 +77,7 @@ stw_st_framebuffer_validate_locked(struct st_framebuffer_iface *stfb, templ.depth0 = 1; templ.array_size = 1; templ.last_level = 0; + templ.nr_samples = stwfb->stvis.samples; for (i = 0; i < ST_ATTACHMENT_COUNT; i++) { enum pipe_format format; |