From 0925e5f5bc843237e534313dd5b99095ecbdd987 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 16 Jun 2015 15:32:45 -0600 Subject: [PATCH] st/wgl: respect sample count when creating framebuffer surfaces Use the visual/pixel format's sample count instead of zero. Reviewed-by: Matthew McClure --- 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 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; -- 2.30.2