VideoCommon: cleanup of "components" usage

This "u32 components" is a list of flags which attributes of the vertex loader are present.
We are used to append this variable to lots of vertex generation functions, but some of them don't need it at all.
This commit is contained in:
degasus
2014-01-15 16:58:36 +01:00
parent a561c436fc
commit 5e5db9fbc6
10 changed files with 34 additions and 37 deletions

View File

@ -259,7 +259,7 @@ void VertexManager::vFlush()
// set global constants
VertexShaderManager::SetConstants();
PixelShaderManager::SetConstants(g_nativeVertexFmt->m_components);
PixelShaderManager::SetConstants();
ProgramShaderCache::UploadConstants();
// setup the pointers
@ -280,7 +280,7 @@ void VertexManager::vFlush()
{
// Need to set these again, if we don't support UBO
VertexShaderManager::SetConstants();
PixelShaderManager::SetConstants(g_nativeVertexFmt->m_components);
PixelShaderManager::SetConstants();
}
// only update alpha