Skip to content

Commit

Permalink
Graphics: Fix disabling RT not working (fixes #1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Nov 30, 2024
1 parent dc3cb6d commit e55866d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/mods/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,12 @@ void Graphics::apply_ray_tracing_tweaks() {
}

if (set_enabled != nullptr) {
if (rt_type == 0) {
// Just turn it off
set_enabled->call<void>(context, target, false);
return;
}

set_enabled->call<void>(context, target, true); // Some games have this disabled.
}

Expand Down

0 comments on commit e55866d

Please sign in to comment.