mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 17:41:21 -08:00
Merge pull request #2119 from FernandoS27/fix-copy
rasterizer_cache_gl: Only do fast layered copy on the same format.
This commit is contained in:
commit
c4243c07cc
@ -1257,7 +1257,11 @@ Surface RasterizerCacheOpenGL::RecreateSurface(const Surface& old_surface,
|
|||||||
case SurfaceTarget::TextureCubemap:
|
case SurfaceTarget::TextureCubemap:
|
||||||
case SurfaceTarget::Texture2DArray:
|
case SurfaceTarget::Texture2DArray:
|
||||||
case SurfaceTarget::TextureCubeArray:
|
case SurfaceTarget::TextureCubeArray:
|
||||||
|
if (old_params.pixel_format == new_params.pixel_format)
|
||||||
FastLayeredCopySurface(old_surface, new_surface);
|
FastLayeredCopySurface(old_surface, new_surface);
|
||||||
|
else {
|
||||||
|
AccurateCopySurface(old_surface, new_surface);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_CRITICAL(Render_OpenGL, "Unimplemented surface target={}",
|
LOG_CRITICAL(Render_OpenGL, "Unimplemented surface target={}",
|
||||||
|
Loading…
Reference in New Issue
Block a user