Skip to content

Commit fc9fdea

Browse files
committed
Don't sync mode cvars when vid_restart doesn't set a mode
VID_Restart (false) is used to recreate render resources without touching the window (vsync, FSAA and OIT mode changes). It still called VID_SyncCvars, which reset vid_width/vid_height/vid_refreshrate/ vid_fullscreen to the current mode, discarding pending selections in the video menu. Toggling vsync therefore reverted an unapplied resolution or fullscreen choice.
1 parent 219c9bc commit fc9fdea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Quake/gl_vidsdl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4656,7 +4656,8 @@ void VID_Restart (qboolean set_mode)
46564656
//
46574657
// keep cvars in line with actual mode
46584658
//
4659-
VID_SyncCvars ();
4659+
if (set_mode)
4660+
VID_SyncCvars ();
46604661

46614662
//
46624663
// update mouse grab

0 commit comments

Comments
 (0)