diff options
-rw-r--r-- | src/core/chromium_overrides.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/chromium_overrides.cpp b/src/core/chromium_overrides.cpp index 7462b4157..76902bbc4 100644 --- a/src/core/chromium_overrides.cpp +++ b/src/core/chromium_overrides.cpp @@ -110,6 +110,7 @@ namespace gpu { std::unique_ptr<VulkanImplementation> CreateVulkanImplementation(bool use_swiftshader, bool allow_protected_memory) { +#if QT_CONFIG(webengine_vulkan) #if BUILDFLAG(IS_APPLE) // TODO: Investigate if we can support MoltenVK. NOTIMPLEMENTED(); @@ -132,6 +133,10 @@ std::unique_ptr<VulkanImplementation> CreateVulkanImplementation(bool use_swifts return std::make_unique<VulkanImplementationQt>(); #endif // BUILDFLAG(IS_APPLE) +#else + NOTREACHED(); + return nullptr; +#endif // QT_CONFIG(webengine_vulkan) } } // namespace gpu #endif // BUILDFLAG(ENABLE_VULKAN) |