diff options
Diffstat (limited to '3rdparty/bgfx/src/renderer_gl.cpp')
-rw-r--r-- | 3rdparty/bgfx/src/renderer_gl.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/3rdparty/bgfx/src/renderer_gl.cpp b/3rdparty/bgfx/src/renderer_gl.cpp index 68e4b952cd9..1ed6333c217 100644 --- a/3rdparty/bgfx/src/renderer_gl.cpp +++ b/3rdparty/bgfx/src/renderer_gl.cpp @@ -2507,18 +2507,18 @@ namespace bgfx { namespace gl } } - uint32_t flags = _resolution.m_flags & ~(0 + const uint32_t maskFlags = ~(0 | BGFX_RESET_HMD_RECENTER | BGFX_RESET_MAXANISOTROPY | BGFX_RESET_DEPTH_CLAMP | BGFX_RESET_SUSPEND ); - if (m_resolution.m_width != _resolution.m_width - || m_resolution.m_height != _resolution.m_height - || m_resolution.m_flags != flags) + if (m_resolution.m_width != _resolution.m_width + || m_resolution.m_height != _resolution.m_height + || (m_resolution.m_flags&maskFlags) != (_resolution.m_flags&maskFlags) ) { - flags &= ~BGFX_RESET_INTERNAL_FORCE; + uint32_t flags = _resolution.m_flags & (~BGFX_RESET_INTERNAL_FORCE); m_resolution = _resolution; m_resolution.m_flags = flags; @@ -5640,6 +5640,11 @@ namespace bgfx { namespace gl { BGFX_GPU_PROFILER_BEGIN_DYNAMIC("rendererSubmit"); + if (_render->m_capture) + { + renderDocTriggerCapture(); + } + if (1 < m_numWindows && m_vaoSupport) { |