diff --git a/src/gallium/frontends/wgl/stw_st.c b/src/gallium/frontends/wgl/stw_st.c index 334b6b4ee05..dc46260ca65 100644 --- a/src/gallium/frontends/wgl/stw_st.c +++ b/src/gallium/frontends/wgl/stw_st.c @@ -243,7 +243,7 @@ stw_st_framebuffer_validate_locked(struct st_context *st, if (format != PIPE_FORMAT_NONE) { templ.format = format; - if (bind != PIPE_BIND_DEPTH_STENCIL && stwfb->stvis.samples > 1) { + if ((bind & PIPE_BIND_DEPTH_STENCIL) == 0 && stwfb->stvis.samples > 1) { templ.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_RENDER_TARGET; templ.nr_samples = templ.nr_storage_samples = stwfb->stvis.samples;