diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-13 06:52:49 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-03-13 06:52:49 +0100 |
commit | a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b (patch) | |
tree | 03af50c5953a83010820dd064bb96c8f5fa5cd24 /src/video_core | |
parent | video_core: rasterizer_accelerated: Fix delta check ordering. (diff) | |
download | yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar.gz yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar.bz2 yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar.lz yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar.xz yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.tar.zst yuzu-a9d24b0df36b7e3bb5e8f5e71f3b6a9a2485f44b.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/rasterizer_accelerated.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/rasterizer_accelerated.cpp b/src/video_core/rasterizer_accelerated.cpp index 4fd57d7c7..62d84c0f8 100644 --- a/src/video_core/rasterizer_accelerated.cpp +++ b/src/video_core/rasterizer_accelerated.cpp @@ -28,7 +28,8 @@ void RasterizerAccelerated::UpdatePagesCachedCount(VAddr addr, u64 size, int del ASSERT_MSG(true, "Delta must be non-zero!"); } - count += static_cast<s8>(delta); + // Adds or subtracts 1, as count is a unsigned 8-bit value + count += static_cast<u8>(delta); // Assume delta is either -1 or 1 if (count == 0) { |