From cd4b5350e61ee949dfffab3ef97b6c8054ced1ff Mon Sep 17 00:00:00 2001 From: Holger Frydrych Date: Fri, 5 Mar 2021 08:17:17 +0100 Subject: [PATCH] If effects are disabled via hotkey, also disable them in the VR runtime --- source/runtime.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/runtime.cpp b/source/runtime.cpp index 2fa8c7b579..44e2a2473b 100644 --- a/source/runtime.cpp +++ b/source/runtime.cpp @@ -184,7 +184,11 @@ void reshade::runtime::on_present() if (!_ignore_shortcuts) { if (_input->is_key_pressed(_effects_key_data, _force_shortcut_modifiers)) + { _effects_enabled = !_effects_enabled; + if (vr::vr_runtime() != nullptr && vr::vr_runtime() != this) + vr::vr_runtime()->_effects_enabled = _effects_enabled; + } if (_input->is_key_pressed(_screenshot_key_data, _force_shortcut_modifiers)) _should_save_screenshot = true; // Notify 'update_and_render_effects' that we want to save a screenshot next frame