Module: Mesa Branch: master Commit: 0925e5f5bc843237e534313dd5b99095ecbdd987 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0925e5f5bc843237e534313dd5b99095ecbdd987
Author: Brian Paul <[email protected]> Date: Tue Jun 16 15:32:45 2015 -0600 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]> --- src/gallium/state_trackers/wgl/stw_st.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/wgl/stw_st.c b/src/gallium/state_trackers/wgl/stw_st.c index e95c37f..6325ab1 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
