diff -r 60014484121c -r 67d7b79997df src/glcontext.c --- a/src/glcontext.c Wed Aug 06 00:37:01 2025 +0200 +++ b/src/glcontext.c Thu Aug 07 22:40:41 2025 +0200 @@ -74,6 +74,16 @@ } } +AscGLContextSettings asc_gl_context_settings_default(int gl_major_version, int gl_minor_version) { + return (AscGLContextSettings) { + .gl_major_version = gl_major_version, + .gl_minor_version = gl_minor_version, + .depth_size = 24, + .vsync = true, + .fullscreen = false, + }; +} + bool asc_gl_context_initialize( AscGLContext *ctx, SDL_Window *window, @@ -91,7 +101,7 @@ glewExperimental = GL_TRUE; GLenum err = glewInit(); if (err == GLEW_OK) { - SDL_GL_SetSwapInterval(settings->vsync); + SDL_GL_SetSwapInterval(settings->vsync ? 1 : 0); glClearColor(0.0f, 0.0f, 0.0f, 1.0f); glEnable(GL_DEBUG_OUTPUT);