mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-20 04:34:48 +00:00
15 lines
267 B
C++
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
|