Skip to content

Commit

Permalink
If effects are disabled via hotkey, also disable them in the VR runtime
Browse files Browse the repository at this point in the history
fholger committed Mar 5, 2021
1 parent bec9412 commit cd4b535
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/runtime.cpp
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cd4b535

Please sign in to comment.