st/wgl: respect sample count when creating framebuffer surfaces
authorBrian Paul <brianp@vmware.com>
Tue, 16 Jun 2015 21:32:45 +0000 (15:32 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Jun 2015 14:45:00 +0000 (08:45 -0600)
Use the visual/pixel format's sample count instead of zero.

Reviewed-by: Matthew McClure <mcclurem@vmware.com>
src/gallium/state_trackers/wgl/stw_st.c

index e95c37fcecd15e1f5c2f2f83053cc163861782ec..6325ab1ce2993055b33e6351765f260ef1abc709 100644 (file)
@@ -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;