Disable buggy bandicam vulkan layer. Closes #2152

This commit is contained in:
baldurk
2021-01-19 10:25:59 +00:00
parent 7e5fc40779
commit 7125104c3d
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -116,6 +116,9 @@ class VulkanHook : LibraryHook
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Set, EnvSep::NoSep, "DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1", "1"));
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1"));
#if ENABLED(RDOC_WIN32)
// on windows support self-hosted capture by checking our filename and tweaking the env var we
// set
+3
View File
@@ -4153,6 +4153,9 @@ ReplayStatus Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts,
Process::RegisterEnvironmentModification(EnvironmentModification(
EnvMod::Set, EnvSep::NoSep, "DISABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1", "1"));
Process::RegisterEnvironmentModification(
EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1"));
Process::ApplyEnvironmentModification();
void *module = LoadVulkanLibrary();