Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

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

unknown1c90b099d3eb
diff --git a/src/video_core/renderer_vulkan/vk_texture_cache.cpp b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
index 575651905e..7a7d0fe179 100644
--- a/src/video_core/renderer_vulkan/vk_texture_cache.cpp
+++ b/src/video_core/renderer_vulkan/vk_texture_cache.cpp
@@ -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),