diff options
| author | onelin <oscar@nelin.dk> | 2025-04-01 09:45:43 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-04-09 09:55:17 +0000 |
| commit | 7352085dca54837fb60dbba4328ee0bc069bca16 (patch) | |
| tree | d5cbd648aea5abebc17627294e49a383e7323e0d /src/core | |
| parent | e97750ce116cbcd67a8718c646e3af6415a4247e (diff) | |
Fetch GLFW3 if not installed locally
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/src/loop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/src/loop.c b/src/core/src/loop.c index 73131d5..cff8d64 100644 --- a/src/core/src/loop.c +++ b/src/core/src/loop.c @@ -319,7 +319,7 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { //const f64 delta = (f64)dt / (f64)fps_cap; /* Events */ - glfwPollEvents(); + window_poll_events(); i_flush_bindings(dt, callbacks_len, callbacks, mem->data); /* Update */ @@ -389,7 +389,7 @@ i32 engine_run(Platform* p, StateType initial_state, void* state_arg) { ticks++; } while( - !glfwWindowShouldClose(p->window->window) + !window_should_close(p->window) && state != STATE_quit ); |
