summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/src/glcontext_glx.cpp
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/bgfx/src/glcontext_glx.cpp')
-rw-r--r--3rdparty/bgfx/src/glcontext_glx.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/bgfx/src/glcontext_glx.cpp b/3rdparty/bgfx/src/glcontext_glx.cpp
index 13a91de7daf..17ee8e825e7 100644
--- a/3rdparty/bgfx/src/glcontext_glx.cpp
+++ b/3rdparty/bgfx/src/glcontext_glx.cpp
@@ -225,9 +225,10 @@ namespace bgfx { namespace gl
m_visualInfo = NULL;
}
- void GlContext::resize(uint32_t /*_width*/, uint32_t /*_height*/, bool _vsync)
+ void GlContext::resize(uint32_t /*_width*/, uint32_t /*_height*/, uint32_t _flags)
{
- int32_t interval = _vsync ? 1 : 0;
+ bool vsync = !!(_flags&BGFX_RESET_VSYNC);
+ int32_t interval = vsync ? 1 : 0;
if (NULL != glXSwapIntervalEXT)
{