From e5744076fc6c405aab8553c43fb1f2e68833d2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Fri, 2 May 2025 01:03:15 +0300 Subject: [PATCH] Disable LightFX for OpenGL --- src/openrct2/config/Config.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openrct2/config/Config.cpp b/src/openrct2/config/Config.cpp index 12152f6bfc..484ff85946 100644 --- a/src/openrct2/config/Config.cpp +++ b/src/openrct2/config/Config.cpp @@ -211,9 +211,9 @@ namespace OpenRCT2::Config // Default config setting is false until the games canvas can be separated from the effect model->DayNightCycle = reader->GetBoolean("day_night_cycle", false); - const bool isHardware = true; - model->EnableLightFx = isHardware && reader->GetBoolean("enable_light_fx", false); - model->EnableLightFxForVehicles = isHardware && reader->GetBoolean("enable_light_fx_for_vehicles", false); + const bool supportsLightFx = model->DrawingEngine == DrawingEngine::SoftwareWithHardwareDisplay; + model->EnableLightFx = supportsLightFx && reader->GetBoolean("enable_light_fx", false); + model->EnableLightFxForVehicles = supportsLightFx && reader->GetBoolean("enable_light_fx_for_vehicles", false); model->UpperCaseBanners = reader->GetBoolean("upper_case_banners", false); model->DisableLightningEffect = reader->GetBoolean("disable_lightning_effect", false); model->SteamOverlayPause = reader->GetBoolean("steam_overlay_pause", true);