glfw: correctly @errorSetCast when returning errors from createWindowSurface
Fixes an issue where `createWindowSurface` would not compile (found when updating https://github.com/hexops/mach-glfw-vulkan-example to latest.) Introduced in hexops/mach#115 cc @InKryption Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3648d6b9c4
commit
9ea4d2aa6f
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ pub inline fn createWindowSurface(vk_instance: anytype, window: Window, vk_alloc
|
|||
Error.InvalidValue => @panic("Attempted to use window with client api to create vulkan surface."),
|
||||
Error.APIUnavailable,
|
||||
Error.PlatformError,
|
||||
=> err,
|
||||
=> @errSetCast(error{ APIUnavailable, PlatformError }, err),
|
||||
else => unreachable,
|
||||
};
|
||||
return v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue