diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-01-07 21:56:15 +0100 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-02-13 19:07:56 +0100 |
commit | b675c44e494976cf8164203fc826b54e2fac467b (patch) | |
tree | 68880d4617e87048fd1c325ed05dc26b434396cf /src/video_core/command_classes | |
parent | Address PR feedback (diff) | |
download | yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.gz yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.bz2 yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.lz yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.xz yuzu-b675c44e494976cf8164203fc826b54e2fac467b.tar.zst yuzu-b675c44e494976cf8164203fc826b54e2fac467b.zip |
Diffstat (limited to 'src/video_core/command_classes')
-rw-r--r-- | src/video_core/command_classes/vic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/video_core/command_classes/vic.cpp b/src/video_core/command_classes/vic.cpp index 564f9c1e8..0a8b82f2b 100644 --- a/src/video_core/command_classes/vic.cpp +++ b/src/video_core/command_classes/vic.cpp @@ -134,10 +134,10 @@ void Vic::Execute() { // Populate luma buffer for (std::size_t y = 0; y < surface_height - 1; ++y) { - std::size_t src = y * stride; - std::size_t dst = y * aligned_width; + const std::size_t src = y * stride; + const std::size_t dst = y * aligned_width; - std::size_t size = surface_width; + const std::size_t size = surface_width; for (std::size_t offset = 0; offset < size; ++offset) { luma_buffer[dst + offset] = luma_ptr[src + offset]; @@ -148,8 +148,8 @@ void Vic::Execute() { // Populate chroma buffer from both channels with interleaving. for (std::size_t y = 0; y < half_height; ++y) { - std::size_t src = y * half_stride; - std::size_t dst = y * aligned_width; + const std::size_t src = y * half_stride; + const std::size_t dst = y * aligned_width; for (std::size_t x = 0; x < half_width; ++x) { chroma_buffer[dst + x * 2] = chroma_b_ptr[src + x]; |