void GSWndOGL::SetVSync(bool enable) { // m_swapinterval uses an integer as parameter // 0 -> disable vsync // n -> wait n frame if (m_swapinterval) m_swapinterval(m_NativeDisplay, m_NativeWindow, (int)enable); }
//TODO: check extensions supported or not //FIXME : extension allocation void GSWndWGL::SetVSync(int vsync) { // m_swapinterval uses an integer as parameter // 0 -> disable vsync // n -> wait n frame if (m_swapinterval) m_swapinterval(vsync); }