Skip to content

Commit

Permalink
Vulkan: Force disable broken VK_LAYER_bandicam_helper layer in editor
Browse files Browse the repository at this point in the history
Fixes #101480.
  • Loading branch information
akien-mga committed Jan 14, 2025
1 parent 4ce466d commit 210e9d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 210e9d7

Please sign in to comment.