WinPlatformGL.cpp 241 B

1234567891011121314
  1. #if defined(TORQUE_OPENGL) && !defined(TORQUE_SDL)
  2. #include "platform/platformGL.h"
  3. #include "gfx/gl/tGL/tWGL.h"
  4. void PlatformGL::setVSync(const int i)
  5. {
  6. if (WGLEW_EXT_swap_control)
  7. {
  8. wglSwapIntervalEXT(i);
  9. }
  10. }
  11. #endif