gsdx-ogl: allow to control vsync on Windows

Issue #529

Completely untested
This commit is contained in:
Gregory Hainaut 2015-05-07 18:39:51 +02:00
parent 6095f40baf
commit 8f1d00292b
2 changed files with 3 additions and 7 deletions

View File

@ -130,9 +130,7 @@ bool GSWndWGL::Attach(void* handle, bool managed)
CheckContext(); CheckContext();
// TODO m_swapinterval = (PFNWGLSWAPINTERVALEXTPROC)wglGetProcAddress("wglSwapIntervalEXT");
//m_swapinterval = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapIntervalMESA");
//PFNGLXSWAPINTERVALMESAPROC m_swapinterval = (PFNGLXSWAPINTERVALMESAPROC)glXGetProcAddress((const GLubyte*) "glXSwapInterval");
PopulateGlFunction(); PopulateGlFunction();
@ -288,9 +286,7 @@ void GSWndWGL::SetVSync(bool enable)
// m_swapinterval uses an integer as parameter // m_swapinterval uses an integer as parameter
// 0 -> disable vsync // 0 -> disable vsync
// n -> wait n frame // n -> wait n frame
//if (m_swapinterval) m_swapinterval((int)enable); if (m_swapinterval) m_swapinterval((int)enable);
// wglSwapIntervalEXT(!enable);
} }
void GSWndWGL::Flip() void GSWndWGL::Flip()

View File

@ -29,7 +29,7 @@ class GSWndWGL : public GSWndGL
HDC m_NativeDisplay; HDC m_NativeDisplay;
HGLRC m_context; HGLRC m_context;
//PFNGLXSWAPINTERVALMESAPROC m_swapinterval; PFNWGLSWAPINTERVALEXTPROC m_swapinterval;
bool CreateContext(int major, int minor); bool CreateContext(int major, int minor);
void CheckContext(); void CheckContext();