From 60a83f32467577595e7bb6a6b88e2c3bdd82916f Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Fri, 31 Dec 2021 16:17:37 -0600 Subject: [PATCH] syncing --- src/main.onyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.onyx b/src/main.onyx index 135d1e6..62b2bbd 100644 --- a/src/main.onyx +++ b/src/main.onyx @@ -19,7 +19,7 @@ selected_block: Vector3i; window: GLFWwindow_p; create_window :: () => { - #if runtime.OS == runtime.OS_Linux { + #if runtime.compiler_os == .Linux { glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 2); glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_ES_API); @@ -177,6 +177,7 @@ main_loop :: () { now = glfwGetTime(); dt := now - last; last = now; + dt = math.clamp(dt, 0, 0.5); seconds += dt; frame_count += 1; -- 2.25.1