glfw: force init error type work around
This commit is contained in:
parent
9f241b5109
commit
44fee8f1f1
10 changed files with 67 additions and 69 deletions
|
|
@ -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,
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue