Differential D1142 Diff 6395 ps/trunk/source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/tools/atlas/GameInterface/Handlers/GraphicsSetupHandlers.cpp
Show First 20 Lines • Show All 81 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 | #if OS_WIN | ||||
// HACK (to stop things looking very ugly when scrolling) - should | // HACK (to stop things looking very ugly when scrolling) - should | ||||
// use proper config system. | // use proper config system. | ||||
if(ogl_HaveExtension("WGL_EXT_swap_control")) | if(ogl_HaveExtension("WGL_EXT_swap_control")) | ||||
pwglSwapIntervalEXT(1); | pwglSwapIntervalEXT(1); | ||||
#endif | #endif | ||||
} | } | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator