|
@@ -115,6 +115,7 @@ void sdl2_window_create(struct sdl2_console *scon)
|
|
SDL_SetHint(SDL_HINT_RENDER_BATCHING, "1");
|
|
SDL_SetHint(SDL_HINT_RENDER_BATCHING, "1");
|
|
|
|
|
|
scon->winctx = SDL_GL_CreateContext(scon->real_window);
|
|
scon->winctx = SDL_GL_CreateContext(scon->real_window);
|
|
|
|
+ SDL_GL_SetSwapInterval(0);
|
|
} else {
|
|
} else {
|
|
/* The SDL renderer is only used by sdl2-2D, when OpenGL is disabled */
|
|
/* The SDL renderer is only used by sdl2-2D, when OpenGL is disabled */
|
|
scon->real_renderer = SDL_CreateRenderer(scon->real_window, -1, 0);
|
|
scon->real_renderer = SDL_CreateRenderer(scon->real_window, -1, 0);
|