Skip to content
Snippets Groups Projects
Commit 17b7f038 authored by Lioncash's avatar Lioncash
Browse files

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.
parent 9e7713c1
No related branches found
No related tags found
No related merge requests found
......@@ -1139,7 +1139,7 @@ void DeduceBlitImages(ImageInfo& dst_info, ImageInfo& src_info, const ImageBase*
dst_info.format = src->info.format;
}
if (!src && dst && GetFormatType(dst->info.format) != SurfaceType::ColorTexture) {
src_info.format = src->info.format;
src_info.format = dst->info.format;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment