Fix minor regressions introduced in 3e79a12
3e79a12f3d
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
2e9347399d
commit
0cdac6c68a
3 changed files with 3 additions and 3 deletions
|
|
@ -109,7 +109,7 @@ pub inline fn getTimerValue() u64 {
|
|||
pub inline fn getTimerFrequency() u64 {
|
||||
internal_debug.assertInitialized();
|
||||
const frequency = c.glfwGetTimerFrequency();
|
||||
if (frequency != 0) frequency;
|
||||
if (frequency != 0) return frequency;
|
||||
getError() catch |err| return switch (err) {
|
||||
Error.NotInitialized => unreachable,
|
||||
else => unreachable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue