summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2019-04-15 18:24:29 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2019-04-15 18:24:29 +0200
commitbf561e4340fd15303f949f87fbdb07624f8ad0f5 (patch)
treee0a05fa5520ee5dbad292a3b7384aa2f644cec74 /src/video_core
parentMerge pull request #2378 from lioncash/ro (diff)
downloadyuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar.gz
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar.bz2
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar.lz
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar.xz
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.tar.zst
yuzu-bf561e4340fd15303f949f87fbdb07624f8ad0f5.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp5
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;