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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user