diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-19 01:42:19 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-01-30 06:31:36 +0100 |
commit | ab6954e942654fb003964fc95c0846aa8b89ac91 (patch) | |
tree | 5bcd962d8a38044f71967f41ba9cab70a942e2f0 /src/video_core/vertex_loader.cpp | |
parent | VideoCore: Change misleading register names (diff) | |
download | yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar.gz yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar.bz2 yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar.lz yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar.xz yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.tar.zst yuzu-ab6954e942654fb003964fc95c0846aa8b89ac91.zip |
Diffstat (limited to 'src/video_core/vertex_loader.cpp')
-rw-r--r-- | src/video_core/vertex_loader.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp index 2b8ef7018..bf83b61ca 100644 --- a/src/video_core/vertex_loader.cpp +++ b/src/video_core/vertex_loader.cpp @@ -70,7 +70,8 @@ void VertexLoader::Setup(const Pica::Regs& regs) { is_setup = true; } -void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, Shader::InputVertex& input, +void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, + Shader::AttributeBuffer& input, DebugUtils::MemoryAccessTracker& memory_accesses) { ASSERT_MSG(is_setup, "A VertexLoader needs to be setup before loading vertices."); @@ -142,7 +143,7 @@ void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, Shader::I input.attr[i][2].ToFloat32(), input.attr[i][3].ToFloat32()); } else if (vertex_attribute_is_default[i]) { // Load the default attribute if we're configured to do so - input.attr[i] = g_state.vs_default_attributes[i]; + input.attr[i] = g_state.input_default_attributes.attr[i]; LOG_TRACE(HW_GPU, "Loaded default attribute %x for vertex %x (index %x): (%f, %f, %f, %f)", i, vertex, index, input.attr[i][0].ToFloat32(), input.attr[i][1].ToFloat32(), |