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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user