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