diff options
Diffstat (limited to '3rdparty/bgfx/src/glcontext_wgl.cpp')
-rw-r--r-- | 3rdparty/bgfx/src/glcontext_wgl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/bgfx/src/glcontext_wgl.cpp b/3rdparty/bgfx/src/glcontext_wgl.cpp index 84c32a06633..19ca6d99f72 100644 --- a/3rdparty/bgfx/src/glcontext_wgl.cpp +++ b/3rdparty/bgfx/src/glcontext_wgl.cpp @@ -287,11 +287,12 @@ namespace bgfx { namespace gl m_opengl32dll = NULL; } - void GlContext::resize(uint32_t /*_width*/, uint32_t /*_height*/, bool _vsync) + void GlContext::resize(uint32_t /*_width*/, uint32_t /*_height*/, uint32_t _flags) { if (NULL != wglSwapIntervalEXT) { - wglSwapIntervalEXT(_vsync ? 1 : 0); + bool vsync = !!(_flags&BGFX_RESET_VSYNC); + wglSwapIntervalEXT(vsync ? 1 : 0); } } |