summaryrefslogtreecommitdiff
path: root/src/rendering
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering')
-rw-r--r--src/rendering/src/window.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rendering/src/window.c b/src/rendering/src/window.c
index 67a2b55..455b913 100644
--- a/src/rendering/src/window.c
+++ b/src/rendering/src/window.c
@@ -58,6 +58,10 @@ GladGLContext* create_context(GLFWwindow *window) {
return context;
}
+static inline f64 glfw_gettime_msec() {
+ return glfwGetTime() / 1000.0;
+}
+
Window* init_window_glfw(
const char* windowtitle, ivec2 windowsize,
const u32 flags
@@ -126,7 +130,7 @@ Window* init_window_glfw(
ret->context = NULL;
window_poll_events = &glfwPollEvents;
- get_time = &glfwGetTime;
+ get_time = &glfw_gettime_msec;
return ret;
}