Skip to content

Commit

Permalink
GL|Cleanup: GL_state.features.vsync usage
Browse files Browse the repository at this point in the history
This value is only true on Win32 if the necessary entrypoints to
toggle it were successfully imported.
  • Loading branch information
danij-deng committed Feb 16, 2012
1 parent 4434d12 commit cb02586
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions doomsday/engine/portable/src/sys_opengl.c
Expand Up @@ -574,19 +574,9 @@ void Sys_GLConfigureDefaultState(void)
glFogi(GL_FOG_END, 2100); // This should be tweaked a bit.
glFogfv(GL_FOG_COLOR, fogcol);

#ifdef WIN32
if(GL_state.features.vsync && wglSwapIntervalEXT != NULL)
{
GL_SetVSync(true);
}
#endif

#ifdef MACOSX
if(GL_state.features.vsync)
{
// Always use vsync on the Mac.
GL_SetVSync(true);
}
#if WIN32 || MACOSX
// Always use vsync if available.
GL_SetVSync(true);
#endif

#if DRMESA
Expand Down

0 comments on commit cb02586

Please sign in to comment.