OGL: only create stencil buffer when needed

This commit is contained in:
Michael Maltese
2017-03-09 15:33:10 -08:00
parent ba6e917b49
commit 53224d41d0
5 changed files with 86 additions and 42 deletions

View File

@ -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;
}
};