summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2019-04-15 21:41:52 -0400
committerGravatar GitHub2019-04-15 21:41:52 -0400
commitc1e35d117c415328dc162c16129ff0c438083f64 (patch)
treee0a05fa5520ee5dbad292a3b7384aa2f644cec74 /src
parentMerge pull request #2378 from lioncash/ro (diff)
parentCorrect Pitch in Fermi2D (diff)
downloadyuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.gz
yuzu-c1e35d117c415328dc162c16129ff0c438083f64.tar.xz
yuzu-c1e35d117c415328dc162c16129ff0c438083f64.zip
Merge pull request #2399 from FernandoS27/fermi-fix
Correct Pitch in Fermi2D
Diffstat (limited to 'src')
-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,
281 params.component_type = ComponentTypeFromRenderTarget(config.format); 281 params.component_type = ComponentTypeFromRenderTarget(config.format);
282 params.type = GetFormatType(params.pixel_format); 282 params.type = GetFormatType(params.pixel_format);
283 params.width = config.width; 283 params.width = config.width;
284 if (!params.is_tiled) { 284 params.pitch = config.pitch;
285 const u32 bpp = params.GetFormatBpp() / 8;
286 params.pitch = config.width * bpp;
287 }
288 params.height = config.height; 285 params.height = config.height;
289 params.unaligned_height = config.height; 286 params.unaligned_height = config.height;
290 params.target = SurfaceTarget::Texture2D; 287 params.target = SurfaceTarget::Texture2D;