mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
OGL: only create stencil buffer when needed
This commit is contained in:
@ -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;
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user