From c458a90fa76b5fbfe6c584ab2a77ecc057ce41a4 Mon Sep 17 00:00:00 2001 From: 0scar Date: Tue, 6 Feb 2024 21:30:39 +0100 Subject: Fix setting swap interval without GL contex --- src/rendering/src/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/rendering/src/window.c b/src/rendering/src/window.c index ce5544a..1ddaf47 100644 --- a/src/rendering/src/window.c +++ b/src/rendering/src/window.c @@ -36,7 +36,7 @@ void window_size_callback(GLFWwindow* window, int width, int height) { GladGLContext* create_context(GLFWwindow *window) { glfwMakeContextCurrent(window); - GladGLContext* context = (GladGLContext*) calloc(1, sizeof(GladGLContext)); + GladGLContext* context = (GladGLContext*)malloc(sizeof(GladGLContext)); if (!context) return NULL; int version = gladLoadGLContext(context, glfwGetProcAddress); @@ -98,9 +98,6 @@ Window init_window_glfw( // TODO: input handler callback glfwSetFramebufferSizeCallback(window, window_size_callback); - // Minor tweaks - glfwSwapInterval(0); - // Create the window datastructure ret = (Window)calloc(1, sizeof(Window)); ret->framework = WINDOW_FRAMEWORK_GLFW; -- cgit v1.3