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))) {