Skip to content

Commit

Permalink
In VR mode, don't post-process the window view unless the GUI is active
Browse files Browse the repository at this point in the history
  • Loading branch information
fholger committed Mar 2, 2021
1 parent 2e8843f commit bec9412
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1129,6 +1129,14 @@ void reshade::runtime::update_and_render_effects()
if (!_effects_enabled)
return;

if (vr::vr_runtime() != nullptr && vr::vr_runtime() != this) {
// In VR mode, effects should not be applied to the window unless GUI is active
#if RESHADE_GUI
if (!_show_overlay)
#endif
return;
}

// Update special uniform variables
for (effect &effect : _effects)
{
Expand Down

0 comments on commit bec9412

Please sign in to comment.