Browse Source

[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>
pull/2826/head
unknown 2 months ago
committed by crueter
parent
commit
199bc6a170
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 4
      src/video_core/renderer_vulkan/vk_texture_cache.cpp

4
src/video_core/renderer_vulkan/vk_texture_cache.cpp

@ -1377,7 +1377,9 @@ void TextureCacheRuntime::CopyImage(Image& dst, Image& src,
// As per the size-compatible formats section of vulkan, copy manually via ReinterpretImage // As per the size-compatible formats section of vulkan, copy manually via ReinterpretImage
// these images that aren't size-compatible // these images that aren't size-compatible
if (BytesPerBlock(src.info.format) != BytesPerBlock(dst.info.format)) { 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) { if (src.info.type == ImageType::Linear || dst.info.type == ImageType::Linear) {
return; return;
} }

Loading…
Cancel
Save