[metacity/issue-10: 2/2] compositor-vulkan: fix build
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/issue-10: 2/2] compositor-vulkan: fix build
- Date: Sat, 6 Jun 2020 12:33:34 +0000 (UTC)
commit 99361f28c8763ea4569b5ae9876028d53ac9a234
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun May 24 13:58:51 2020 +0300
compositor-vulkan: fix build
VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE enum was removed in 1.2.140.
https://gitlab.gnome.org/GNOME/metacity/-/issues/10
src/compositor/meta-compositor-vulkan.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/compositor/meta-compositor-vulkan.c b/src/compositor/meta-compositor-vulkan.c
index b87b5194..53b7b3ff 100644
--- a/src/compositor/meta-compositor-vulkan.c
+++ b/src/compositor/meta-compositor-vulkan.c
@@ -810,7 +810,9 @@ device_type_to_string (VkPhysicalDeviceType type)
return "cpu";
break;
+#if VK_HEADER_VERSION < 140
case VK_PHYSICAL_DEVICE_TYPE_RANGE_SIZE:
+#endif
case VK_PHYSICAL_DEVICE_TYPE_MAX_ENUM:
default:
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]