# HG changeset patch # User reimar # Date 1337536659 0 # Node ID f56b927a9e3ea186bc46e9ffa7b0edb15c7c10e7 # Parent 60cb31e9e55d5732fc3a75950bdfd82a7c182bca SDL OpenGL: add support for swapinterval option. diff -r 60cb31e9e55d -r f56b927a9e3e libvo/vo_gl.c --- a/libvo/vo_gl.c Sun May 20 17:57:08 2012 +0000 +++ b/libvo/vo_gl.c Sun May 20 17:57:39 2012 +0000 @@ -661,6 +661,10 @@ #endif #ifdef CONFIG_GL_SDL if (glctx.type == GLTYPE_SDL) { +#if SDL_VERSION_ATLEAST(1, 2, 10) + // Ugly to do this here, but SDL ignores it if set later + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, swap_interval); +#endif if (!vo_sdl_config(d_width, d_height, flags, title)) return -1; }