Pass all reset flags to glcontext.

This commit is contained in:
Branimir Karadžić
2015-04-06 21:31:26 -07:00
parent c5a03233c0
commit 288361b5c1
13 changed files with 35 additions and 27 deletions
+3 -2
View File
@@ -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)
{