mirror of
https://github.com/yawut/SDL.git
synced 2026-08-01 07:53:54 -05:00
X11: Fixed SDL_GL_GetSwapInterval() returning -1 if interval is unknown.
It should return 0 as a safe default if the interval can not be determined.
This commit is contained in:
parent
db06405c19
commit
7c88f77ffc
|
|
@ -710,7 +710,7 @@ X11_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)
|
|||
with 0 as an argument.
|
||||
*/
|
||||
|
||||
static int swapinterval = -1;
|
||||
static int swapinterval = 0;
|
||||
int
|
||||
X11_GL_SetSwapInterval(_THIS, int interval)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user