summaryrefslogtreecommitdiff
path: root/src/rendering
diff options
context:
space:
mode:
Diffstat (limited to 'src/rendering')
-rw-r--r--src/rendering/src/window.c5
1 files changed, 1 insertions, 4 deletions
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;