mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-28 13:28:03 +03:00
Adding missmatch info to Texture cache assert (#2828)
This commit is contained in:
parent
0c86c54d48
commit
cda421434b
1 changed files with 7 additions and 3 deletions
|
@ -326,9 +326,13 @@ ImageId TextureCache::FindImage(BaseDesc& desc, FindFlags flags) {
|
|||
info.pixel_format != cache_image.info.pixel_format) {
|
||||
continue;
|
||||
}
|
||||
ASSERT((cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} ||
|
||||
True(flags & FindFlags::RelaxFmt)));
|
||||
if (!(cache_image.info.type == info.type || info.size == Extent3D{1, 1, 1} ||
|
||||
static_cast<bool>(flags & FindFlags::RelaxFmt))) {
|
||||
ASSERT_MSG(false, "Image cache type mismatch: cache={}, info={}",
|
||||
int(cache_image.info.type), int(info.type));
|
||||
image_id = cache_id;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (True(flags & FindFlags::NoCreate) && !image_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue