Changeset View
Changeset View
Standalone View
Standalone View
source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
MESSAGEHANDLER(InitGraphics) | MESSAGEHANDLER(InitGraphics) | ||||
{ | { | ||||
UNUSED2(msg); | UNUSED2(msg); | ||||
ogl_Init(); | ogl_Init(); | ||||
InitGraphics(g_AtlasGameLoop->args, g_InitFlags, {}); | InitGraphics(g_AtlasGameLoop->args, g_InitFlags, {}); | ||||
#if OS_WIN | SDL_GL_SetSwapInterval(g_VSync ? 1 : 0); | ||||
// HACK (to stop things looking very ugly when scrolling) - should | |||||
// use proper config system. | |||||
if(ogl_HaveExtension("WGL_EXT_swap_control")) | |||||
pwglSwapIntervalEXT(1); | |||||
#endif | |||||
} | } | ||||
MESSAGEHANDLER(Shutdown) | MESSAGEHANDLER(Shutdown) | ||||
{ | { | ||||
UNUSED2(msg); | UNUSED2(msg); | ||||
// Empty the CommandProc, to get rid of its references to entities before | // Empty the CommandProc, to get rid of its references to entities before | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator