This commit is contained in:
Branimir Karadžić 2015-11-03 19:06:14 -08:00
parent 867696f1dc
commit b3aa330b1c
3 changed files with 3 additions and 3 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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()