diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-28 06:01:22 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-06-21 02:36:12 +0200 |
commit | b8c75a845b1784045a10fa8b5f1f57f2ec53eeca (patch) | |
tree | b71f71b5d3d8c3d12556e3fbf9344dbb9e8f220c /src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | |
parent | gl_shader_decompiler: Allow 1D textures to be texture buffers (diff) | |
download | yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.gz yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.bz2 yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.lz yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.xz yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.tar.zst yuzu-b8c75a845b1784045a10fa8b5f1f57f2ec53eeca.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_rasterizer_cache.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index a7681902e..543b36271 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -140,7 +140,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.width = Common::AlignUp(config.tic.Width(), GetCompressionFactor(params.pixel_format)); params.height = Common::AlignUp(config.tic.Height(), GetCompressionFactor(params.pixel_format)); - if (!params.is_tiled) { + if (config.tic.IsLineal()) { params.pitch = config.tic.Pitch(); } params.unaligned_height = config.tic.Height(); |