summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-02-25 05:03:52 +0100
committerGitHub <noreply@github.com>2019-02-25 05:03:52 +0100
commitc4243c07cc716505fb5c1c2abbf964a2714b7dec (patch)
tree04052a95b9591e3707dddf7dd58fe156b63fb255 /src
parentMerge pull request #2155 from FearlessTobi/port-4655 (diff)
parentrasterizer_cache_gl: Only do fast layered copy on the same format. As (diff)
downloadyuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar.gz
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar.bz2
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar.lz
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar.xz
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.tar.zst
yuzu-c4243c07cc716505fb5c1c2abbf964a2714b7dec.zip
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer_cache.cpp6
1 files changed, 5 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 74200914e..e6d47ce41 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer_cache.cpp
@@ -1257,7 +1257,11 @@ Surface RasterizerCacheOpenGL::RecreateSurface(const Surface& old_surface,
case SurfaceTarget::TextureCubemap:
case SurfaceTarget::Texture2DArray:
case SurfaceTarget::TextureCubeArray:
- FastLayeredCopySurface(old_surface, new_surface);
+ if (old_params.pixel_format == new_params.pixel_format)
+ FastLayeredCopySurface(old_surface, new_surface);
+ else {
+ AccurateCopySurface(old_surface, new_surface);
+ }
break;
default:
LOG_CRITICAL(Render_OpenGL, "Unimplemented surface target={}",