mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
vkdisplay: Use ifdef for platform specific defines
VK_KHR_*_SURFACE_EXTENSION_NAME are only available when corresponding WSI is enabled. https://bugzilla.gnome.org/show_bug.cgi?id=784539
This commit is contained in:
parent
c538942b0d
commit
9c6d36984f
1 changed files with 4 additions and 0 deletions
|
@ -449,11 +449,15 @@ gst_vulkan_display_type_to_extension_string (GstVulkanDisplayType type)
|
|||
if (type == GST_VULKAN_DISPLAY_TYPE_NONE)
|
||||
return NULL;
|
||||
|
||||
#if GST_VULKAN_HAVE_WINDOW_XCB
|
||||
if (type & GST_VULKAN_DISPLAY_TYPE_XCB)
|
||||
return VK_KHR_XCB_SURFACE_EXTENSION_NAME;
|
||||
#endif
|
||||
|
||||
#if GST_VULKAN_HAVE_WINDOW_WAYLAND
|
||||
if (type & GST_VULKAN_DISPLAY_TYPE_WAYLAND)
|
||||
return VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME;
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue