diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-16 03:41:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-16 03:41:52 +0200 |
commit | c1e35d117c415328dc162c16129ff0c438083f64 (patch) | |
tree | e0a05fa5520ee5dbad292a3b7384aa2f644cec74 /src | |
parent | Merge pull request #2378 from lioncash/ro (diff) | |
parent | Correct Pitch in Fermi2D (diff) | |
download | yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.gz yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.bz2 yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.lz yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.xz yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.zst yuzu-c1e35d117c415328dc162c16129ff0c438083f64.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer_cache.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp index f2ffc4710..7a68b8738 100644 --- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp +++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp @@ -281,10 +281,7 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only, params.component_type = ComponentTypeFromRenderTarget(config.format); params.type = GetFormatType(params.pixel_format); params.width = config.width; - if (!params.is_tiled) { - const u32 bpp = params.GetFormatBpp() / 8; - params.pitch = config.width * bpp; - } + params.pitch = config.pitch; params.height = config.height; params.unaligned_height = config.height; params.target = SurfaceTarget::Texture2D; |