OGL: only create stencil buffer when needed

This commit is contained in:
Michael Maltese
2017-03-15 17:41:33 -07:00
parent ba6e917b49
commit 53224d41d0
5 changed files with 86 additions and 42 deletions
@@ -167,4 +167,10 @@ void BoundingBox::StencilWasUpdated()
s_stencil_updated = true;
s_stencil_cleared = false;
}
bool BoundingBox::NeedsStencilBuffer()
{
return g_ActiveConfig.bBBoxEnable &&
!g_ActiveConfig.backend_info.bSupportsFragmentStoresAndAtomics;
}
};