diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-30 03:46:09 +0100 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-11-02 00:22:12 +0100 |
commit | 60a184455c5aef7cce7e6232cab738f66cb0aac0 (patch) | |
tree | 7421f8289ad911124dd68ad5c8059ebc8ba3a017 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Fix ASTC formats (diff) | |
download | yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar.gz yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar.bz2 yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar.lz yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar.xz yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.tar.zst yuzu-60a184455c5aef7cce7e6232cab738f66cb0aac0.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: |