From: Brian Paul Date: Tue, 16 Jun 2015 21:32:45 +0000 (-0600) Subject: st/wgl: respect sample count when creating framebuffer surfaces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0925e5f5bc843237e534313dd5b99095ecbdd987;p=mesa.git st/wgl: respect sample count when creating framebuffer surfaces Use the visual/pixel format's sample count instead of zero. Reviewed-by: Matthew McClure --- 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;