mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 23:36:58 +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>
|
.IPs swapinterval=<n>
|
||||||
Minimum interval in displayed frames between to buffer swaps (default: 1).
|
Minimum interval in displayed frames between to buffer swaps (default: 1).
|
||||||
1 is equivalent to enable VSYNC, 0 to disable VSYNC.
|
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).
|
This will limit the framerate to (horizontal refresh rate / n).
|
||||||
Requires GLX_SGI_swap_control support to work.
|
Requires GLX_SGI_swap_control support to work.
|
||||||
With some (most/all?) implementations this only works in fullscreen mode.
|
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 );
|
glClearColor( 0.0f,0.0f,0.0f,0.0f );
|
||||||
glClear( GL_COLOR_BUFFER_BIT );
|
glClear( GL_COLOR_BUFFER_BIT );
|
||||||
if (SwapInterval)
|
if (SwapInterval && swap_interval >= 0)
|
||||||
SwapInterval(swap_interval);
|
SwapInterval(swap_interval);
|
||||||
gl_buffer = 0;
|
gl_buffer = 0;
|
||||||
gl_buffersize = 0;
|
gl_buffersize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user