From b3aa330b1ca47665e5bf3f90d3c77338d141f685 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 3 Nov 2015 19:06:14 -0800 Subject: [PATCH] Cleanup. --- src/renderer_d3d11.cpp | 2 +- src/renderer_d3d9.cpp | 2 +- src/renderer_gl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 98bd2fe8..3f34a922 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -2732,7 +2732,7 @@ BX_PRAGMA_DIAGNOSTIC_POP(); bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible) { m_occlusionQuery.resolve(_render); - return _visible == 0 != _render->m_occlusion[_handle.idx]; + return _visible == (0 != _render->m_occlusion[_handle.idx]); } DXGI_FORMAT getBufferFormat() diff --git a/src/renderer_d3d9.cpp b/src/renderer_d3d9.cpp index 04351451..28a25850 100644 --- a/src/renderer_d3d9.cpp +++ b/src/renderer_d3d9.cpp @@ -1568,7 +1568,7 @@ namespace bgfx { namespace d3d9 bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible) { m_occlusionQuery.resolve(_render); - return _visible == 0 != _render->m_occlusion[_handle.idx]; + return _visible == (0 != _render->m_occlusion[_handle.idx]); } void capturePreReset() diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 4c38c2cc..cf15f486 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2715,7 +2715,7 @@ namespace bgfx { namespace gl bool isVisible(Frame* _render, OcclusionQueryHandle _handle, bool _visible) { m_occlusionQuery.resolve(_render); - return _visible == 0 != _render->m_occlusion[_handle.idx]; + return _visible == (0 != _render->m_occlusion[_handle.idx]); } void ovrPostReset()