set blending if dual source might be triggered

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

No files matched your search

@@ -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);
}
}