From 9bc6174f621ed9775184f5589a960d096a0eeba8 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 10 Mar 2025 13:04:37 +0000 Subject: [PATCH] Disable reshade --- renderdoc/driver/vulkan/vk_layer.cpp | 3 +++ renderdoc/driver/vulkan/vk_replay.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/renderdoc/driver/vulkan/vk_layer.cpp b/renderdoc/driver/vulkan/vk_layer.cpp index 5f03fa858..fd9e8cae4 100644 --- a/renderdoc/driver/vulkan/vk_layer.cpp +++ b/renderdoc/driver/vulkan/vk_layer.cpp @@ -152,6 +152,9 @@ class VulkanHook : LibraryHook Process::RegisterEnvironmentModification(EnvironmentModification( EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1")); + Process::RegisterEnvironmentModification( + EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VK_LAYER_reshade_1", "1")); + // fpsmon not only has a buggy layer but it also picks an absurdly generic disable environment // variable :(. Hopefully no other program picks this, or if it does then it's probably not a // bad thing to disable too diff --git a/renderdoc/driver/vulkan/vk_replay.cpp b/renderdoc/driver/vulkan/vk_replay.cpp index 9a2232676..7ab9424d4 100644 --- a/renderdoc/driver/vulkan/vk_replay.cpp +++ b/renderdoc/driver/vulkan/vk_replay.cpp @@ -5271,6 +5271,9 @@ RDResult Vulkan_CreateReplayDevice(RDCFile *rdc, const ReplayOptions &opts, IRep Process::RegisterEnvironmentModification( EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "VK_LAYER_bandicam_helper_DEBUG_1", "1")); + Process::RegisterEnvironmentModification( + EnvironmentModification(EnvMod::Set, EnvSep::NoSep, "DISABLE_VK_LAYER_reshade_1", "1")); + // fpsmon not only has a buggy layer but it also picks an absurdly generic disable environment // variable :(. Hopefully no other program picks this, or if it does then it's probably not a // bad thing to disable too