mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-10 07:38:56 +02:00
[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:
parent
05c721bb41
commit
199bc6a170
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue