diff options
| author | 2024-10-04 13:25:32 -0400 | |
|---|---|---|
| committer | 2024-10-04 13:25:32 -0400 | |
| commit | 132a20f8b4a81a61a67cf16c84c6b0183fba8222 (patch) | |
| tree | ef8d57c559c4efda9883314769804b141873e67b /src | |
| parent | 72e52678a96c8f9350a992a062afb1c11e685102 (diff) | |
| download | stela-132a20f8b4a81a61a67cf16c84c6b0183fba8222.tar.gz stela-132a20f8b4a81a61a67cf16c84c6b0183fba8222.tar.bz2 stela-132a20f8b4a81a61a67cf16c84c6b0183fba8222.zip | |
Add wrap files and some comments
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src')
| -rw-r--r-- | src/poll_common.c | 1 | ||||
| -rw-r--r-- | src/window_glfw.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/poll_common.c b/src/poll_common.c index 4174dae..bc637d7 100644 --- a/src/poll_common.c +++ b/src/poll_common.c @@ -20,6 +20,7 @@ bool stl_poll_common(struct aki_pollfd *fds, bool block) return false; } + // This happens consistantly if a program is lagging too much. TODO: Recovery. if (fds[0].revents & (POLLERR | POLLHUP | POLLNVAL)) { // Fatal error. al_log_error("poll_common", "poll() returned error in revents (%d).", fds[0].revents); al_assert(false); diff --git a/src/window_glfw.c b/src/window_glfw.c index 41e6172..c586ffc 100644 --- a/src/window_glfw.c +++ b/src/window_glfw.c @@ -174,6 +174,7 @@ static bool window_glfw_create_window(struct stl_window *window, s32 width, s32 #if defined STELA_POLL_INLINE glfwSetWindowRefreshCallback(glfw->window, refresh_callback); #endif + // This seems to be called if we block too long after creating a window. glfwSetWindowCloseCallback(glfw->window, close_callback); return true; |