Torque3D/Engine/source/platformWin32/WinPlatformGL.cpp
2016-03-25 13:41:38 -04:00

15 lines
267 B
C++

#if defined(TORQUE_OPENGL) && !defined(TORQUE_SDL)
#include "platform/platformGL.h"
#include "gfx/gl/tGL/tWGL.h"
void PlatformGL::setVSync(const int i)
{
if (gglHasWExtension(wglGetCurrentDC(), EXT_swap_control))
{
wglSwapIntervalEXT(i);
}
}
#endif