summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-04-19 02:30:24 +0200
committerJan Beich <jbeich@FreeBSD.org>2020-04-19 02:32:23 +0200
commitafcc84a1726556e08a560d03665fbc7b7c8f6b5f (patch)
treed1a93c533ae4c35e7cdcb952fb36e8a6f8df1860 /src/video_core/renderer_vulkan
parentMerge pull request #3716 from bunnei/fix-another-impl-fallthrough (diff)
downloadyuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar.gz
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar.bz2
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar.lz
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar.xz
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.tar.zst
yuzu-afcc84a1726556e08a560d03665fbc7b7c8f6b5f.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/renderer_vulkan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
index dd590c38b..04532f8f8 100644
--- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp
+++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp
@@ -42,7 +42,7 @@
#include <vulkan/vulkan_win32.h>
#endif
-#ifdef __linux__
+#if !defined(_WIN32) && !defined(__APPLE__)
#include <X11/Xlib.h>
#include <vulkan/vulkan_wayland.h>
#include <vulkan/vulkan_xlib.h>
@@ -119,7 +119,7 @@ vk::Instance CreateInstance(Common::DynamicLibrary& library, vk::InstanceDispatc
extensions.push_back(VK_KHR_WIN32_SURFACE_EXTENSION_NAME);
break;
#endif
-#ifdef __linux__
+#if !defined(_WIN32) && !defined(__APPLE__)
case Core::Frontend::WindowSystemType::X11:
extensions.push_back(VK_KHR_XLIB_SURFACE_EXTENSION_NAME);
break;
@@ -345,7 +345,7 @@ bool RendererVulkan::CreateSurface() {
}
}
#endif
-#ifdef __linux__
+#if !defined(_WIN32) && !defined(__APPLE__)
if (window_info.type == Core::Frontend::WindowSystemType::X11) {
const VkXlibSurfaceCreateInfoKHR xlib_ci{
VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR, nullptr, 0,