0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-12-23 19:25:46 +00:00

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. // Any textures that are incompatible will contain garbage data, so they should be removed where possible.
int viewCompatible = 0; int viewCompatible = 0;
bool setData = isSamplerTexture || overlapsCount == 0; bool setData = isSamplerTexture || overlapsCount == 0 || flags.HasFlag(TextureSearchFlags.ForCopy);
for (int index = 0; index < overlapsCount; index++) for (int index = 0; index < overlapsCount; index++)
{ {