mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
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:
parent
a561c436fc
commit
5e5db9fbc6
10 changed files with 34 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue