diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-19 12:16:52 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-08-19 12:16:52 +0000 |
commit | f37f504f2ab027bd12347e8db8a31faa8254d0ee (patch) | |
tree | 3eaf9e58c27d10a332f90e2ef3282e6f29ab8d3c /libvo | |
parent | 5da34263f61bb1f0170904abf5d875b13a5db6f4 (diff) | |
download | mpv-f37f504f2ab027bd12347e8db8a31faa8254d0ee.tar.bz2 mpv-f37f504f2ab027bd12347e8db8a31faa8254d0ee.tar.xz |
Do not set SwapInterval for values < 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16272 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_gl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 657f548718..775d7333c0 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -150,7 +150,7 @@ static int initGl(uint32_t d_width, uint32_t d_height) { glClearColor( 0.0f,0.0f,0.0f,0.0f ); glClear( GL_COLOR_BUFFER_BIT ); - if (SwapInterval) + if (SwapInterval && swap_interval >= 0) SwapInterval(swap_interval); gl_buffer = 0; gl_buffersize = 0; |