mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 13:00:05 +00:00
texture_cache: Remove dead code within SynchronizeAliases
Since these were being copied by value, none of the changes applied in the loop would be reflected. However, from the looks of it, this would already be applied within CopyImage() anyways, so this can be removed.
This commit is contained in:
parent
856f576c05
commit
7367e55d1d
@ -1736,19 +1736,7 @@ void TextureCache<P>::SynchronizeAliases(ImageId image_id) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
ScaleUp(aliased_image);
|
ScaleUp(aliased_image);
|
||||||
|
CopyImage(image_id, aliased->id, aliased->copies);
|
||||||
const bool both_2d{image.info.type == ImageType::e2D &&
|
|
||||||
aliased_image.info.type == ImageType::e2D};
|
|
||||||
auto copies = aliased->copies;
|
|
||||||
for (auto copy : copies) {
|
|
||||||
copy.extent.width = std::max<u32>(
|
|
||||||
(copy.extent.width * resolution.up_scale) >> resolution.down_shift, 1);
|
|
||||||
if (both_2d) {
|
|
||||||
copy.extent.height = std::max<u32>(
|
|
||||||
(copy.extent.height * resolution.up_scale) >> resolution.down_shift, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
CopyImage(image_id, aliased->id, copies);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user