From df49d9da10281d2c86c6f04ec41333b454bb6ee1 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Thu, 20 Jun 2024 09:26:35 -0700 Subject: [PATCH] wgl: Fix flag check for GDI compat Fixes: c432fbe5 ("wgl: Add no-gdi-single-buffered and gdi-double-buffered PFDs") Reviewed-By: Mike Blumenkrantz Reviewed-by: Jose Fonseca Part-of: --- src/gallium/frontends/wgl/stw_pixelformat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/frontends/wgl/stw_pixelformat.c b/src/gallium/frontends/wgl/stw_pixelformat.c index 343ea3f3303..d7db69a2837 100644 --- a/src/gallium/frontends/wgl/stw_pixelformat.c +++ b/src/gallium/frontends/wgl/stw_pixelformat.c @@ -298,7 +298,7 @@ add_color_format_variants(const struct stw_pf_color_info *color_formats, stw_pixelformat_add(stw_dev, extended, &color_formats[cfmt], depth, acc * 16, (flag & stw_pfd_double_buffer) != 0, - (flag == stw_pfd_gdi_support) != 0, samples); + (flag & stw_pfd_gdi_support) != 0, samples); num_added++; } }