glfw: force init error type work around

This commit is contained in:
InKryption 2021-11-21 20:42:32 +01:00 committed by Stephen Gutekanst
parent 9f241b5109
commit 44fee8f1f1
10 changed files with 67 additions and 69 deletions

View file

@ -58,7 +58,7 @@ pub inline fn setTime(time: f64) error{ InvalidValue }!void {
c.glfwSetTime(time);
getError() catch |err| return switch (err) {
// TODO: Consider whether to use GLFW error handling, or assert that 'time' is a valid value
Error.InvalidValue => err,
Error.InvalidValue => @errSetCast(error{ InvalidValue }, err),
else => unreachable,
};
}