Fix Vsync

This commit is contained in:
GabsPuNs
2026-05-23 00:55:25 -04:00
parent 0f8bfed6e7
commit a6776e91c6

View File

@@ -1656,7 +1656,8 @@ void CMinecraftApp::ActionGameSettings(int iPad,eGameSetting eVal)
break;
case eGameSetting_Vsync:
{
if ((GameSettingsA[iPad]->uiBitmaskValues & GAMESETTING_VSYNC) == 1)
int toggle = ((GameSettingsA[iPad]->uiBitmaskValues&GAMESETTING_VSYNC)>>24);
if (toggle == 1)
RenderManager.EnableVsync();
else
RenderManager.DisableVsync();