From 5ac1e0629143731279315386c7ae7b8451267be5 Mon Sep 17 00:00:00 2001 From: Jonathan Steffan Date: Sat, 7 Feb 2026 12:40:53 -0700 Subject: [PATCH] fix(encoder_settings): fix FTBFS when only WIVRN_USE_VULKAN --- server/encoder/encoder_settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/encoder/encoder_settings.cpp b/server/encoder/encoder_settings.cpp index df51909e..2d5f1a77 100644 --- a/server/encoder/encoder_settings.cpp +++ b/server/encoder/encoder_settings.cpp @@ -351,6 +351,7 @@ std::array get_encoder_settings(wivrn_vk_bundle & bundle, c } }; +#if WIVRN_USE_VAAPI auto check_vaapi = [&](int bit_depth) { for (const auto & encoder: res) { @@ -379,6 +380,11 @@ std::array get_encoder_settings(wivrn_vk_bundle & bundle, c } return true; }; +#else + auto check_vaapi = [&](int) { + return true; + }; +#endif if (bit_depth == 10 and not(check_format(vk::Format::eR16Unorm) and check_vaapi(*bit_depth))) {