yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Fix attribute mapping in vs debugger

This commit is contained in:
Jannik Vogel 2016-03-09 13:15:37 +01:00
parent 8530a2d7df
commit 557b732b43
1 changed files with 2 additions and 2 deletions

View File

@ -498,8 +498,8 @@ void GraphicsVertexShaderWidget::Reload(bool replace_vertex_data, void* vertex_d
// Reload widget state // Reload widget state
for (int attr = 0; attr < num_attributes; ++attr) { for (int attr = 0; attr < num_attributes; ++attr) {
unsigned source_attr = shader_config.input_register_map.GetRegisterForAttribute(attr); unsigned source_attr = shader_config.input_register_map.GetRegisterForAttribute(attr);
input_data_mapping[source_attr]->setText(QString("-> v%1").arg(attr)); input_data_mapping[attr]->setText(QString("-> v%1").arg(source_attr));
input_data_container[source_attr]->setVisible(true); input_data_container[attr]->setVisible(true);
} }
// Only show input attributes which are used as input to the shader // Only show input attributes which are used as input to the shader
for (unsigned int attr = num_attributes; attr < 16; ++attr) { for (unsigned int attr = num_attributes; attr < 16; ++attr) {