[texuter_cache] #ifdef image type linear return windows only (#2720)

fixes some mario rabbits issue

Authored by amicuchu

Reviewed-on: eden-emu/eden#2720
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Co-authored-by: unknown <sahyno1996@gmail.com>
Co-committed-by: unknown <sahyno1996@gmail.com>
This commit is contained in:
unknown 2025-10-17 22:12:22 +02:00 committed by crueter
parent e2a8f3154f
commit 1c90b099d3
Signed by untrusted user: crueter
GPG key ID: 425ACD2D4830EBC6

View file

@ -1377,9 +1377,11 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
// As per the size-compatible formats section of vulkan, copy manually via ReinterpretImage
// these images that aren't size-compatible
if (BytesPerBlock(src.info.format) != BytesPerBlock(dst.info.format)) {
#ifdef __WIN32__
if (src.info.type == ImageType::Linear || dst.info.type == ImageType::Linear) {
return;
}
#endif
auto oneCopy = VideoCommon::ImageCopy{
.src_offset = VideoCommon::Offset3D(0, 0, 0),
.dst_offset = VideoCommon::Offset3D(0, 0, 0),