Always set new texture data for textures initialized by a copy. (#1576)

This commit is contained in:
riperiperi 2020-09-27 00:37:45 +01:00 committed by GitHub
parent 16e9d15674
commit f89b754abb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -771,7 +771,7 @@ namespace Ryujinx.Graphics.Gpu.Image
// Any textures that are incompatible will contain garbage data, so they should be removed where possible.
int viewCompatible = 0;
bool setData = isSamplerTexture || overlapsCount == 0;
bool setData = isSamplerTexture || overlapsCount == 0 || flags.HasFlag(TextureSearchFlags.ForCopy);
for (int index = 0; index < overlapsCount; index++)
{