Skip to content

Commit

Permalink
Merge pull request #101540 from akien-mga/vulkan-disable-layer-bandicam
Browse files Browse the repository at this point in the history
Vulkan: Force disable broken `VK_LAYER_bandicam_helper` layer in editor
  • Loading branch information
Repiteo committed Jan 16, 2025
2 parents ad4eeac + 210e9d7 commit 97fa4bd
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 97fa4bd

Please sign in to comment.