Make RenderScene the work dispatching class

This commit is contained in:
Magnus Norddahl 2017-02-04 14:00:21 +01:00
commit 5bae06a3c6
9 changed files with 47 additions and 43 deletions

View file

@ -279,7 +279,7 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
int x2_i = int(x2);
fixed_t xiscale_i = FLOAT2FIXED(xiscale);
static RenderThread thread;
static RenderThread thread(nullptr);
thread.DrawQueue->ThreadedRender = false;
while (x < x2_i)
{
@ -1430,7 +1430,7 @@ void DCanvas::FillSimplePoly(FTexture *tex, FVector2 *points, int npoints,
pt2++; if (pt2 > npoints) pt2 = 0;
} while (pt1 != botpt);
static RenderThread thread;
static RenderThread thread(nullptr);
thread.DrawQueue->ThreadedRender = false;
// Travel down the left edge and fill it in.