diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-25 01:25:28 +0200 |
---|---|---|
committer | FernandoS27 <fsahmkow27@gmail.com> | 2018-10-29 00:00:01 +0100 |
commit | 258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd (patch) | |
tree | 8c805cb136b2d938f24e5aaaa2e7a3f723f4ccb1 /src/video_core/renderer_opengl/gl_rasterizer_cache.h | |
parent | Zero out memory region of recreated surface before flushing (diff) | |
download | yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar.gz yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar.bz2 yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar.lz yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar.xz yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.tar.zst yuzu-258f0f5c31decbb25eddde798b3a4bcc6a7cc6dd.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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.h b/src/video_core/renderer_opengl/gl_rasterizer_cache.h index 5bcd33156..68479d55a 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.h +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.h @@ -919,7 +919,7 @@ struct SurfaceParams { u32 height = MipHeight(mip_level); u32 bh = block_height; // Magical block resizing algorithm, needs more testing. - while (bh != 1 && height / bh <= 16) { + while (bh > 1 && (height + bh - 1) / bh <= 16) { bh = bh >> 1; } return bh; @@ -929,7 +929,7 @@ struct SurfaceParams { u32 depth = MipDepth(mip_level); u32 bd = block_depth; // Magical block resizing algorithm, needs more testing. - while (bd != 1 && depth / bd <= 16) { + while (bd > 1 && depth / bd <= 16) { bd = bd >> 1; } return bd; |