- moved locking logic from DCanvas to DFrameBuffer.

The software canvases used for rendering camera textures and save pictures in the software renderer do not need this.
This commit is contained in:
Christoph Oelckers 2018-03-27 11:12:13 +02:00
commit ba799aebbd
11 changed files with 6 additions and 65 deletions

View file

@ -93,13 +93,9 @@ void PolyRenderer::RenderViewToCanvas(AActor *actor, DCanvas *canvas, int x, int
viewwindowy = y;
viewactive = true;
canvas->Lock(true);
RenderActorView(actor, dontmaplines);
Threads.MainThread()->FlushDrawQueue();
DrawerThreads::WaitForWorkers();
canvas->Unlock();
RenderTarget = screen;
R_ExecuteSetViewSize(Viewpoint, Viewwindow);