mirror of
https://gitlab.com/suyu-emu/suyu.git
synced 2024-03-15 23:15:44 +00:00
texture_cache/util: Fix src being used instead of dst within DeduceBlitImages
This line can only ever be reached if src is null, so dereferencing it here is a logic bug that slipped through. Instead, we dereference dst instead which is guaranteed to be valid.
This commit is contained in:
parent
9e7713c150
commit
17b7f0389a
|
@ -1139,7 +1139,7 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
|
||||||
dst_info.format = src->info.format;
|
dst_info.format = src->info.format;
|
||||||
}
|
}
|
||||||
if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
|
if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
|
||||||
src_info.format = src->info.format;
|
src_info.format = dst->info.format;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue