wgl: Fix zink depth buffers

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37644>
This commit is contained in:
Jesse Natalie
2025-09-30 10:49:46 -07:00
committed by Marge Bot
parent 7b75bf0759
commit 9bab6eb596
+1 -1
View File
@@ -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;