mach: use optional specifier

This commit is contained in:
Ali Chraghi 2022-08-12 18:37:42 +04:30 committed by Stephen Gutekanst
parent f299d87aa2
commit 9a79da0f69

View file

@ -94,7 +94,7 @@ pub const Platform = struct {
.force_fallback_adapter = false,
}, &response, util.requestAdapterCallback);
if (response.?.status != .success) {
std.debug.print("mach: failed to create GPU adapter: {s}\n", .{response.?.message});
std.debug.print("mach: failed to create GPU adapter: {?s}\n", .{response.?.message});
std.debug.print("-> maybe try GPU_BACKEND=opengl ?\n", .{});
std.process.exit(1);
}