1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix screenshots not having a render context

This commit is contained in:
ζeh Matt
2025-04-24 18:19:59 +03:00
parent 576a757200
commit eb6b554d77

View File

@@ -316,8 +316,13 @@ static void RenderViewport(IDrawingEngine* drawingEngine, const Viewport& viewpo
tempDrawingEngine = std::make_unique<X8DrawingEngine>(GetContext()->GetUiContext());
drawingEngine = tempDrawingEngine.get();
}
tempDrawingEngine->BeginDraw();
dpi.DrawingEngine = drawingEngine;
ViewportRender(dpi, &viewport);
tempDrawingEngine->EndDraw();
}
void ScreenshotGiant()