OGL/VertexManager: Minor cleanup of if case
This commit is contained in:
parent
c11aadee41
commit
80421156b6
|
@ -143,19 +143,11 @@ void VertexManager::vFlush(bool useDstAlpha)
|
||||||
// Makes sure we can actually do Dual source blending
|
// Makes sure we can actually do Dual source blending
|
||||||
bool dualSourcePossible = g_ActiveConfig.backend_info.bSupportsDualSourceBlend;
|
bool dualSourcePossible = g_ActiveConfig.backend_info.bSupportsDualSourceBlend;
|
||||||
|
|
||||||
// finally bind
|
// If host supports GL_ARB_blend_func_extended, we can do dst alpha in
|
||||||
if (dualSourcePossible)
|
// the same pass as regular rendering.
|
||||||
|
if (useDstAlpha && dualSourcePossible)
|
||||||
{
|
{
|
||||||
if (useDstAlpha)
|
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, g_nativeVertexFmt->m_components);
|
||||||
{
|
|
||||||
// If host supports GL_ARB_blend_func_extended, we can do dst alpha in
|
|
||||||
// the same pass as regular rendering.
|
|
||||||
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, g_nativeVertexFmt->m_components);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ProgramShaderCache::SetShader(DSTALPHA_NONE,g_nativeVertexFmt->m_components);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue