diff options
Diffstat (limited to 'src/video_core/cdma_pusher.cpp')
| -rw-r--r-- | src/video_core/cdma_pusher.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/cdma_pusher.cpp b/src/video_core/cdma_pusher.cpp index e1f00c4da..a3fda1094 100644 --- a/src/video_core/cdma_pusher.cpp +++ b/src/video_core/cdma_pusher.cpp | |||
| @@ -145,9 +145,9 @@ void CDmaPusher::ExecuteCommand(u32 state_offset, u32 data) { | |||
| 145 | } | 145 | } |
| 146 | } | 146 | } |
| 147 | 147 | ||
| 148 | void CDmaPusher::ThiStateWrite(ThiRegisters& state, u32 offset, u32 argument) { | 148 | void CDmaPusher::ThiStateWrite(ThiRegisters& state, u32 state_offset, u32 argument) { |
| 149 | u8* const state_offset = reinterpret_cast<u8*>(&state) + sizeof(u32) * offset; | 149 | u8* const offset_ptr = reinterpret_cast<u8*>(&state) + sizeof(u32) * state_offset; |
| 150 | std::memcpy(state_offset, &argument, sizeof(u32)); | 150 | std::memcpy(offset_ptr, &argument, sizeof(u32)); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | } // namespace Tegra | 153 | } // namespace Tegra |