set blending if dual source might be triggered

This commit is contained in:
degasus
2013-01-18 00:44:35 +01:00
parent a87fd89fce
commit 714ff50fdf
3 changed files with 12 additions and 8 deletions

View File

@ -311,12 +311,10 @@ void VertexManager::vFlush()
{
// If host supports GL_ARB_blend_func_extended, we can do dst alpha in
// the same pass as regular rendering.
g_renderer->SetBlendMode(true);
ps = PixelShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, g_nativeVertexFmt->m_components);
}
else
{
g_renderer->SetBlendMode(true);
ps = PixelShaderCache::SetShader(DSTALPHA_NONE,g_nativeVertexFmt->m_components);
}
}