videoconfig: add BBoxPreferStencilImplementation

@JMC47 requested this to be able to do performance comparisons.
This commit is contained in:
Michael Maltese
2017-03-10 00:07:49 -08:00
parent 53224d41d0
commit 134317e07f
5 changed files with 18 additions and 11 deletions

View File

@ -158,14 +158,14 @@ void VertexManager::vFlush()
// setup the pointers
nativeVertexFmt->SetupVertexPointers();
if (!g_Config.backend_info.bSupportsFragmentStoresAndAtomics && ::BoundingBox::active)
if (::BoundingBox::active && !g_Config.BBoxUseFragmentShaderImplementation())
{
glEnable(GL_STENCIL_TEST);
}
Draw(stride);
if (!g_Config.backend_info.bSupportsFragmentStoresAndAtomics && ::BoundingBox::active)
if (::BoundingBox::active && !g_Config.BBoxUseFragmentShaderImplementation())
{
OGL::BoundingBox::StencilWasUpdated();
glDisable(GL_STENCIL_TEST);