From 210e9d733f3830ddf1d0908ef63df0d131f3b40f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 14 Jan 2025 15:55:03 +0100 Subject: [PATCH] Vulkan: Force disable broken `VK_LAYER_bandicam_helper` layer in editor Fixes #101480. --- main/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/main.cpp b/main/main.cpp index 40b437fa746..62ae9a32c09 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2551,12 +2551,16 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph OS::get_singleton()->set_environment("DISABLE_RTSS_LAYER", "1"); // GH-57937. OS::get_singleton()->set_environment("DISABLE_VKBASALT", "1"); OS::get_singleton()->set_environment("DISABLE_VK_LAYER_reshade_1", "1"); // GH-70849. + OS::get_singleton()->set_environment("VK_LAYER_bandicam_helper_DEBUG_1", "1"); // GH-101480. + OS::get_singleton()->set_environment("DISABLE_VK_LAYER_bandicam_helper_1", "1"); // GH-101480. } else { // Re-allow using Vulkan overlays, disabled while using the editor. OS::get_singleton()->unset_environment("DISABLE_MANGOHUD"); OS::get_singleton()->unset_environment("DISABLE_RTSS_LAYER"); OS::get_singleton()->unset_environment("DISABLE_VKBASALT"); OS::get_singleton()->unset_environment("DISABLE_VK_LAYER_reshade_1"); + OS::get_singleton()->unset_environment("VK_LAYER_bandicam_helper_DEBUG_1"); + OS::get_singleton()->unset_environment("DISABLE_VK_LAYER_bandicam_helper_1"); } #endif