mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 23:07:02 +00:00
Do not set SwapInterval for values < 0.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16272 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
5da34263f6
commit
f37f504f2a
@ -2718,6 +2718,7 @@ Slower but in some cases more correct output (default: disabled).
|
||||
.IPs swapinterval=<n>
|
||||
Minimum interval in displayed frames between to buffer swaps (default: 1).
|
||||
1 is equivalent to enable VSYNC, 0 to disable VSYNC.
|
||||
Values < 0 will leave it at the system default.
|
||||
This will limit the framerate to (horizontal refresh rate / n).
|
||||
Requires GLX_SGI_swap_control support to work.
|
||||
With some (most/all?) implementations this only works in fullscreen mode.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user