Mercurial > mplayer.hg
changeset 34845:f56b927a9e3e
SDL OpenGL: add support for swapinterval option.
author | reimar |
---|---|
date | Sun, 20 May 2012 17:57:39 +0000 |
parents | 60cb31e9e55d |
children | 06df8a8bed10 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; }