summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2022-06-18 01:09:35 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2022-09-19 16:28:23 -0500
commit4c629c2beef8b3bae6ee13bbeae484315adbf67c (patch)
tree0a4e427a183dffc50abd86fc8b84db69df4aeb5d /Source/Core/VideoCommon/VertexLoaderManager.cpp
parent720b3f5519c1cf9ee5384b9596ad65ae82935e23 (diff)
VideoCommon: Add dynamic vertex loader to ubershaders
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index 607de66bee..bb843a6120 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -353,7 +353,8 @@ int RunVertices(int vtx_attr_group, OpcodeDecoder::Primitive primitive, int coun
}
s_current_vtx_fmt = loader->m_native_vertex_format;
g_current_components = loader->m_native_components;
- VertexShaderManager::SetVertexFormat(loader->m_native_components);
+ VertexShaderManager::SetVertexFormat(loader->m_native_components,
+ loader->m_native_vertex_format->GetVertexDeclaration());
// if cull mode is CULL_ALL, tell VertexManager to skip triangles and quads.
// They still need to go through vertex loading, because we need to calculate a zfreeze refrence