From 365c48413ff91ae3015557c064c9c91bce3b41a8 Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Wed, 2 Nov 2022 12:54:04 +0100 Subject: [PATCH] Switch to Vulkan 1.1 Since the vulkan loader drops support for useful extensions (or the extension loading process changed between 1.0 & 1.1, not sure) Which causes OBS not to work --- src/engine/client/backend/vulkan/backend_vulkan.cpp | 2 +- src/engine/client/backend/vulkan/backend_vulkan.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/backend/vulkan/backend_vulkan.cpp b/src/engine/client/backend/vulkan/backend_vulkan.cpp index 396ff9876..e518722c6 100644 --- a/src/engine/client/backend/vulkan/backend_vulkan.cpp +++ b/src/engine/client/backend/vulkan/backend_vulkan.cpp @@ -3450,7 +3450,7 @@ public: VKAppInfo.applicationVersion = 1; VKAppInfo.pEngineName = "DDNet-Vulkan"; VKAppInfo.engineVersion = 1; - VKAppInfo.apiVersion = VK_API_VERSION_1_0; + VKAppInfo.apiVersion = VK_API_VERSION_1_1; void *pExt = nullptr; #if defined(VK_EXT_validation_features) && VK_EXT_VALIDATION_FEATURES_SPEC_VERSION >= 5 diff --git a/src/engine/client/backend/vulkan/backend_vulkan.h b/src/engine/client/backend/vulkan/backend_vulkan.h index 6db94cd9c..272414dd4 100644 --- a/src/engine/client/backend/vulkan/backend_vulkan.h +++ b/src/engine/client/backend/vulkan/backend_vulkan.h @@ -4,7 +4,7 @@ class CCommandProcessorFragment_GLBase; static constexpr int gs_BackendVulkanMajor = 1; -static constexpr int gs_BackendVulkanMinor = 0; +static constexpr int gs_BackendVulkanMinor = 1; CCommandProcessorFragment_GLBase *CreateVulkanCommandProcessorFragment();