mach: use optional specifier
This commit is contained in:
parent
f299d87aa2
commit
9a79da0f69
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ pub const Platform = struct {
|
||||||
.force_fallback_adapter = false,
|
.force_fallback_adapter = false,
|
||||||
}, &response, util.requestAdapterCallback);
|
}, &response, util.requestAdapterCallback);
|
||||||
if (response.?.status != .success) {
|
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.debug.print("-> maybe try GPU_BACKEND=opengl ?\n", .{});
|
||||||
std.process.exit(1);
|
std.process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue