From 8ce8429cb36ca253763e4c2a15e9cf556d5b6379 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 27 Feb 2022 05:55:52 +0000 Subject: [PATCH] gpu-dawn: correctly build Surface API for X11 Signed-off-by: Stephen Gutekanst --- gpu-dawn/build.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu-dawn/build.zig b/gpu-dawn/build.zig index 2f6887c2..c116dc18 100644 --- a/gpu-dawn/build.zig +++ b/gpu-dawn/build.zig @@ -107,6 +107,7 @@ pub const Options = struct { if (zero_debug_symbols) try flags.append("-g0") else try flags.append("-g1"); } if (is_cpp) try flags.append("-std=c++17"); + if (self.linux_window_manager != null and self.linux_window_manager.? == .X11) try flags.append("-DDAWN_USE_X11"); } };