diff options
author | Frederic Laing <frederic.laing@alumni.fh-aachen.de> | 2018-11-15 20:10:05 +0100 |
---|---|---|
committer | Frederic Laing <frederic.laing@alumni.fh-aachen.de> | 2018-11-15 20:10:05 +0100 |
commit | 3844b5c0c523dff5d30f889a0560da1a2bfa7f13 (patch) | |
tree | 97bfc6de4c3591563fb8128d4848533e970dfcc8 /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |
parent | Merge pull request #1637 from FernandoS27/cache (diff) | |
download | yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar.gz yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar.bz2 yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar.lz yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar.xz yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.tar.zst yuzu-3844b5c0c523dff5d30f889a0560da1a2bfa7f13.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index 26711e6f7..b44ecfa1c 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -550,8 +550,8 @@ void SwizzleFunc(const GLConversionArray& functions, const SurfaceParams& params if (params.is_layered) { u64 offset = params.GetMipmapLevelOffset(mip_level); u64 offset_gl = 0; - u64 layer_size = params.LayerMemorySize(); - u64 gl_size = params.LayerSizeGL(mip_level); + const u64 layer_size = params.LayerMemorySize(); + const u64 gl_size = params.LayerSizeGL(mip_level); for (u32 i = 0; i < params.depth; i++) { functions[static_cast<std::size_t>(params.pixel_format)]( params.MipWidth(mip_level), params.MipBlockHeight(mip_level), @@ -561,7 +561,7 @@ void SwizzleFunc(const GLConversionArray& functions, const SurfaceParams& params offset_gl += gl_size; } } else { - u64 offset = params.GetMipmapLevelOffset(mip_level); + const u64 offset = params.GetMipmapLevelOffset(mip_level); functions[static_cast<std::size_t>(params.pixel_format)]( params.MipWidth(mip_level), params.MipBlockHeight(mip_level), params.MipHeight(mip_level), params.MipBlockDepth(mip_level), depth, gl_buffer.data(), |