diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-05 00:47:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-05 00:47:26 +0100 |
commit | 38c1c500ab733208d86972f61c29d6679c502c31 (patch) | |
tree | cfe859b9c8f92bada0c6902953470e627769d9ec /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Merge pull request #1645 from dharmin/master (diff) | |
parent | Fix ASTC Decompressor to support depth parameter (diff) | |
download | yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar.gz yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar.bz2 yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar.lz yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar.xz yuzu-38c1c500ab733208d86972f61c29d6679c502c31.tar.zst yuzu-38c1c500ab733208d86972f61c29d6679c502c31.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index f255f4419..46ad37897 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -139,7 +139,7 @@ struct SurfaceParams { } u32 MipDepth(u32 mip_level) const { - return std::max(1U, depth >> mip_level); + return is_layered ? depth : std::max(1U, depth >> mip_level); } // Auto block resizing algorithm from: |