diff options
| author | 2016-01-17 02:22:51 -0500 | |
|---|---|---|
| committer | 2016-01-17 02:22:51 -0500 | |
| commit | 4966568076939ec3a1346fd49c78bf82a1f780d7 (patch) | |
| tree | c1a782ceac94df63e8a901a67c38379baf70b142 | |
| parent | Update README.md (diff) | |
| download | yuzu-4966568076939ec3a1346fd49c78bf82a1f780d7.tar.gz yuzu-4966568076939ec3a1346fd49c78bf82a1f780d7.tar.xz yuzu-4966568076939ec3a1346fd49c78bf82a1f780d7.zip | |
command_processor: Get rid of variable shadowing
| -rw-r--r-- | src/video_core/command_processor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/video_core/command_processor.cpp b/src/video_core/command_processor.cpp index 35b976c60..59c75042c 100644 --- a/src/video_core/command_processor.cpp +++ b/src/video_core/command_processor.cpp | |||
| @@ -486,9 +486,8 @@ void ProcessCommandList(const u32* list, u32 size) { | |||
| 486 | 486 | ||
| 487 | u32 value = *g_state.cmd_list.current_ptr++; | 487 | u32 value = *g_state.cmd_list.current_ptr++; |
| 488 | const CommandHeader header = { *g_state.cmd_list.current_ptr++ }; | 488 | const CommandHeader header = { *g_state.cmd_list.current_ptr++ }; |
| 489 | u32 cmd = header.cmd_id; | ||
| 490 | 489 | ||
| 491 | WritePicaReg(cmd, value, header.parameter_mask); | 490 | WritePicaReg(header.cmd_id, value, header.parameter_mask); |
| 492 | 491 | ||
| 493 | for (unsigned i = 0; i < header.extra_data_length; ++i) { | 492 | for (unsigned i = 0; i < header.extra_data_length; ++i) { |
| 494 | u32 cmd = header.cmd_id + (header.group_commands ? i + 1 : 0); | 493 | u32 cmd = header.cmd_id + (header.group_commands ? i + 1 : 0); |