diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-25 20:34:09 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2015-05-29 22:59:29 +0200 |
commit | b1503b202043a577720e28969b74cca6f9c954f8 (patch) | |
tree | 7da9cdd46c0cde990c30c11570882efdca9396c6 /src/video_core/rasterizer.cpp | |
parent | Merge pull request #817 from linkmauve/citra.ico (diff) | |
download | yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.gz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.bz2 yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.lz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.xz yuzu-b1503b202043a577720e28969b74cca6f9c954f8.tar.zst yuzu-b1503b202043a577720e28969b74cca6f9c954f8.zip |
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r-- | src/video_core/rasterizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp index 767ff4205..6df3a74f2 100644 --- a/src/video_core/rasterizer.cpp +++ b/src/video_core/rasterizer.cpp @@ -104,7 +104,7 @@ static u32 GetDepth(int x, int y) { u8* depth_buffer = Memory::GetPhysicalPointer(addr); y = framebuffer.height - y; - + const u32 coarse_y = y & ~7; u32 bytes_per_pixel = Regs::BytesPerDepthPixel(framebuffer.depth_format); u32 stride = framebuffer.width * bytes_per_pixel; |