mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Fix vsync saving/loading (take two...)
git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@779 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
348f0d559f
commit
98f636b3e2
1 changed files with 2 additions and 4 deletions
|
@ -739,10 +739,6 @@ static void GL_Init (void)
|
|||
|
||||
Cmd_AddCommand ("gl_info", GL_Info_f); //johnfitz
|
||||
|
||||
Cvar_RegisterVariable (&vid_vsync); //johnfitz
|
||||
if (gl_swap_control)
|
||||
Cvar_SetCallback (&vid_vsync, VID_Changed_f);
|
||||
|
||||
if (SDL_strncasecmp(gl_renderer,"PowerVR",7)==0)
|
||||
fullsbardraw = true;
|
||||
if (SDL_strncasecmp(gl_renderer,"Permedia",8)==0)
|
||||
|
@ -1123,10 +1119,12 @@ void VID_Init (void)
|
|||
Cvar_RegisterVariable (&vid_width); //johnfitz
|
||||
Cvar_RegisterVariable (&vid_height); //johnfitz
|
||||
Cvar_RegisterVariable (&vid_bpp); //johnfitz
|
||||
Cvar_RegisterVariable (&vid_vsync); //johnfitz
|
||||
Cvar_SetCallback (&vid_fullscreen, VID_Changed_f);
|
||||
Cvar_SetCallback (&vid_width, VID_Changed_f);
|
||||
Cvar_SetCallback (&vid_height, VID_Changed_f);
|
||||
Cvar_SetCallback (&vid_bpp, VID_Changed_f);
|
||||
Cvar_SetCallback (&vid_vsync, VID_Changed_f);
|
||||
// Cvar_RegisterVariable (&vid_refreshrate); //johnfitz
|
||||
|
||||
Cmd_AddCommand ("vid_unlock", VID_Unlock); //johnfitz
|
||||
|
|
Loading…
Reference in a new issue