[MPlayer-cvslog] r34933 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Sun May 20 19:57:39 CEST 2012


Author: reimar
Date: Sun May 20 19:57:39 2012
New Revision: 34933

Log:
SDL OpenGL: add support for swapinterval option.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Sun May 20 19:57:08 2012	(r34932)
+++ trunk/libvo/vo_gl.c	Sun May 20 19:57:39 2012	(r34933)
@@ -661,6 +661,10 @@ static int create_window(uint32_t d_widt
 #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;
   }


More information about the MPlayer-cvslog mailing list