[texture_cache] Fix WIN32 #ifdef for texture_cache (#2823)

The #ifdef introduced in #2720 was wrong

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2823
Co-authored-by: unknown <sahyno1996@gmail.com>
Co-committed-by: unknown <sahyno1996@gmail.com>
This commit is contained in:
unknown 2025-10-23 08:12:24 +02:00 committed by crueter
parent 05c721bb41
commit 199bc6a170
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with 3 additions and 1 deletions

View File

@ -1377,7 +1377,9 @@ 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__
#ifdef _WIN32
// On Windows, linear images cause device loss when used in image copies.
// Tested with TitleID: 0x010067300059A00 (Mario + Rabbids Kingdom Battle)
if (src.info.type == ImageType::Linear || dst.info.type == ImageType::Linear) {
return;
}