Browse Source
Merge pull request #2119 from FernandoS27/fix-copy
rasterizer_cache_gl: Only do fast layered copy on the same format.
pull/15/merge
bunnei
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
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={}", |
|
|
|
|