mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 09:39:13 +00:00
VideoCommon: flush vertex manager if components change
This commit is contained in:
parent
491e149545
commit
983978ee66
15 changed files with 56 additions and 51 deletions
|
@ -160,11 +160,11 @@ void VertexManager::vFlush(bool useDstAlpha)
|
|||
// the same pass as regular rendering.
|
||||
if (useDstAlpha && dualSourcePossible)
|
||||
{
|
||||
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, nativeVertexFmt->m_components, current_primitive_type);
|
||||
ProgramShaderCache::SetShader(DSTALPHA_DUAL_SOURCE_BLEND, current_primitive_type);
|
||||
}
|
||||
else
|
||||
{
|
||||
ProgramShaderCache::SetShader(DSTALPHA_NONE, nativeVertexFmt->m_components, current_primitive_type);
|
||||
ProgramShaderCache::SetShader(DSTALPHA_NONE, current_primitive_type);
|
||||
}
|
||||
|
||||
// upload global constants
|
||||
|
@ -178,7 +178,7 @@ void VertexManager::vFlush(bool useDstAlpha)
|
|||
// run through vertex groups again to set alpha
|
||||
if (useDstAlpha && !dualSourcePossible)
|
||||
{
|
||||
ProgramShaderCache::SetShader(DSTALPHA_ALPHA_PASS, nativeVertexFmt->m_components, current_primitive_type);
|
||||
ProgramShaderCache::SetShader(DSTALPHA_ALPHA_PASS, current_primitive_type);
|
||||
|
||||
// only update alpha
|
||||
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue