mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-28 02:26:07 +00:00
texture_cache: Remove assert
This commit is contained in:
parent
d956f711af
commit
07eed00d62
|
@ -93,8 +93,6 @@ struct Image {
|
|||
}
|
||||
|
||||
void AssociateDepth(ImageId image_id) {
|
||||
ASSERT_MSG(!depth_id || image_id == depth_id,
|
||||
"Stencil attachment bound to multiple depth targets");
|
||||
depth_id = image_id;
|
||||
}
|
||||
|
||||
|
|
|
@ -447,7 +447,11 @@ ImageView& TextureCache::FindDepthTarget(BaseDesc& desc) {
|
|||
if (desc.info.stencil_addr != 0) {
|
||||
ImageId stencil_id{};
|
||||
ForEachImageInRegion(desc.info.stencil_addr, desc.info.stencil_size,
|
||||
[&](ImageId image_id, Image&) { stencil_id = image_id; });
|
||||
[&](ImageId image_id, Image& image) {
|
||||
if (image.info.guest_address == desc.info.stencil_addr) {
|
||||
stencil_id = image_id;
|
||||
}
|
||||
});
|
||||
if (!stencil_id) {
|
||||
ImageInfo info{};
|
||||
info.guest_address = desc.info.stencil_addr;
|
||||
|
|
Loading…
Reference in a new issue