mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 00:20:46 +00:00
gl_vidsdl.c (GL_Init): set VID_Changed_f() callback to vid_vsync only if
GL_CheckExtensions() set gl_swap_control as true. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@582 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
eff2d79e59
commit
96dfa5e022
1 changed files with 2 additions and 1 deletions
|
@ -752,7 +752,8 @@ void GL_Init (void)
|
|||
Cmd_AddCommand ("gl_info", GL_Info_f); //johnfitz
|
||||
|
||||
Cvar_RegisterVariable (&vid_vsync); //johnfitz
|
||||
Cvar_SetCallback (&vid_vsync, VID_Changed_f);
|
||||
if (gl_swap_control)
|
||||
Cvar_SetCallback (&vid_vsync, VID_Changed_f);
|
||||
|
||||
if (SDL_strncasecmp(gl_renderer,"PowerVR",7)==0)
|
||||
fullsbardraw = true;
|
||||
|
|
Loading…
Reference in a new issue