mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
OGL: only create stencil buffer when needed
This commit is contained in:
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;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue