summaryrefslogtreecommitdiff
path: root/src/citra_qt/debugger/graphics_vertex_shader.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-03-09 20:06:49 -0800
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-03-09 20:06:49 -0800
commit3475808a54d55f59e66af1a8aa1ee1c73fcffce7 (patch)
tree3191eb68f4b22a3d3d402b575346210ab9a1e86f /src/citra_qt/debugger/graphics_vertex_shader.cpp
parentd622a2235b6f479b5aeb732874db696bda4105da (diff)
parent557b732b43e898bcfdc234fa958310a8691a7a08 (diff)
Merge pull request #1478 from JayFoxRox/master
Fix attribute mapping in vs debugger
Diffstat (limited to 'src/citra_qt/debugger/graphics_vertex_shader.cpp')
-rw-r--r--src/citra_qt/debugger/graphics_vertex_shader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/citra_qt/debugger/graphics_vertex_shader.cpp b/src/citra_qt/debugger/graphics_vertex_shader.cpp
index a11c61667..4b676f1b1 100644
--- a/src/citra_qt/debugger/graphics_vertex_shader.cpp
+++ b/src/citra_qt/debugger/graphics_vertex_shader.cpp
@@ -498,8 +498,8 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d
// Reload widget state
for (int attr = 0; attr < num_attributes; ++attr) {
unsigned source_attr = shader_config.input_register_map.GetRegisterForAttribute(attr);
- input_data_mapping[source_attr]->setText(QString("-> v%1").arg(attr));
- input_data_container[source_attr]->setVisible(true);
+ input_data_mapping[attr]->setText(QString("-> v%1").arg(source_attr));
+ input_data_container[attr]->setVisible(true);
}
// Only show input attributes which are used as input to the shader
for (unsigned int attr = num_attributes; attr < 16; ++attr) {