Only queue image downloads if the image address is greater than zero. (#3446)

If the image address is zero, that means we're trying to download a null image, which causes other issues down the line.
This commit is contained in:
Stephen Miller
2025-08-23 06:18:40 -05:00
committed by GitHub
parent 788228c0f3
commit 7165772e9b

View File

@@ -538,7 +538,8 @@ ImageView& TextureCache::FindTexture(ImageId image_id, const BaseDesc& desc) {
Image& image = slot_images[image_id];
if (desc.type == BindingType::Storage) {
image.flags |= ImageFlagBits::GpuModified;
if (Config::readbackLinearImages() && !image.info.props.is_tiled) {
if (Config::readbackLinearImages() && !image.info.props.is_tiled &&
image.info.guest_address != 0) {
download_images.emplace(image_id);
}
}