summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2019-04-10 21:17:03 -0400
committerGravatar GitHub2019-04-10 21:17:03 -0400
commit0371650bd77ae8a13d5a815a03d591f26a04876a (patch)
tree64d0aa16e0cb562761915f51ba1e29778beece8f /src
parentMerge pull request #2345 from ReinUsesLisp/multibind (diff)
parentCorrect Fermi Copy on Linear Textures. (diff)
downloadyuzu-0371650bd77ae8a13d5a815a03d591f26a04876a.tar.gz
yuzu-0371650bd77ae8a13d5a815a03d591f26a04876a.tar.xz
yuzu-0371650bd77ae8a13d5a815a03d591f26a04876a.zip
Merge pull request #2372 from FernandoS27/fermi-fix
Correct Fermi Copy on Linear Textures.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
index aa6da1944..9026a9452 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -266,6 +266,10 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only,
266 params.component_type = ComponentTypeFromRenderTarget(config.format); 266 params.component_type = ComponentTypeFromRenderTarget(config.format);
267 params.type = GetFormatType(params.pixel_format); 267 params.type = GetFormatType(params.pixel_format);
268 params.width = config.width; 268 params.width = config.width;
269 if (!params.is_tiled) {
270 const u32 bpp = params.GetFormatBpp() / 8;
271 params.pitch = config.width * bpp;
272 }
269 params.height = config.height; 273 params.height = config.height;
270 params.unaligned_height = config.height; 274 params.unaligned_height = config.height;
271 params.target = SurfaceTarget::Texture2D; 275 params.target = SurfaceTarget::Texture2D;