From 9bab6eb59655f5d720e55d8a5065388cf86d50a0 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Tue, 30 Sep 2025 10:49:46 -0700 Subject: [PATCH] wgl: Fix zink depth buffers Reviewed-by: Mike Blumenkrantz Part-of: --- src/gallium/frontends/wgl/stw_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;