From ce1aeafa849c99d9983f2eb58a81c7ec8ea6ad4c Mon Sep 17 00:00:00 2001 From: d3m1gd <3992031+d3m1gd@users.noreply.github.com> Date: Sat, 23 Apr 2022 08:50:42 +0700 Subject: [PATCH] choose first adapter (#251) Related to hexops/mach#216 Co-authored-by: d3m1gd --- src/main.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.zig b/src/main.zig index 36330da2..956fe466 100644 --- a/src/main.zig +++ b/src/main.zig @@ -142,6 +142,7 @@ pub fn App(comptime Context: type, comptime config: AppConfig) type { const found_backend_type = @intToEnum(gpu.Adapter.BackendType, c.machDawnNativeAdapterProperties_getBackendType(properties)); if (found_backend_type == backend_type) { dawn_adapter = adapter; + break; } } if (dawn_adapter == null) {