diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/vertex_loader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/vertex_loader.cpp b/src/video_core/vertex_loader.cpp index 38682d2be..4784817f4 100644 --- a/src/video_core/vertex_loader.cpp +++ b/src/video_core/vertex_loader.cpp | |||
| @@ -70,9 +70,9 @@ void VertexLoader::LoadVertex(u32 base_address, int index, int vertex, Shader::I | |||
| 70 | u32 source_addr = base_address + vertex_attribute_sources[i] + vertex_attribute_strides[i] * vertex; | 70 | u32 source_addr = base_address + vertex_attribute_sources[i] + vertex_attribute_strides[i] * vertex; |
| 71 | 71 | ||
| 72 | if (g_debug_context && Pica::g_debug_context->recorder) { | 72 | if (g_debug_context && Pica::g_debug_context->recorder) { |
| 73 | memory_accesses.AddAccess(source_addr, | 73 | memory_accesses.AddAccess(source_addr, vertex_attribute_elements[i] * ( |
| 74 | (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::FLOAT) ? 4 | 74 | (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::FLOAT) ? 4 |
| 75 | : (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::SHORT) ? 2 : 1); | 75 | : (vertex_attribute_formats[i] == Regs::VertexAttributeFormat::SHORT) ? 2 : 1)); |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | switch (vertex_attribute_formats[i]) { | 78 | switch (vertex_attribute_formats[i]) { |