mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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