Skip to content

Commit e55866d

Browse files
committed
Graphics: Fix disabling RT not working (fixes #1163)
1 parent dc3cb6d commit e55866d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mods/Graphics.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -1067,6 +1067,12 @@ void Graphics::apply_ray_tracing_tweaks() {
10671067
}
10681068

10691069
if (set_enabled != nullptr) {
1070+
if (rt_type == 0) {
1071+
// Just turn it off
1072+
set_enabled->call<void>(context, target, false);
1073+
return;
1074+
}
1075+
10701076
set_enabled->call<void>(context, target, true); // Some games have this disabled.
10711077
}
10721078

0 commit comments

Comments
 (0)