1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix LightFX crashing due to operation order (#24315)

This commit is contained in:
Matt
2025-05-02 10:47:28 +03:00
committed by GitHub
parent e5d515b6fb
commit a34f1925df

View File

@@ -162,8 +162,6 @@ void X8DrawingEngine::Invalidate(int32_t left, int32_t top, int32_t right, int32
void X8DrawingEngine::BeginDraw()
{
_drawingContext->BeginDraw();
if (!IntroIsPlaying())
{
// HACK we need to re-configure the bits if light fx has been enabled / disabled
@@ -175,6 +173,8 @@ void X8DrawingEngine::BeginDraw()
}
_weatherDrawer.Restore(_bitsDPI);
}
_drawingContext->BeginDraw();
}
void X8DrawingEngine::EndDraw()