- Added thread safety to texture loading in the software renderer

This commit is contained in:
Magnus Norddahl 2017-03-12 22:53:20 +01:00
commit a663f71a9f
12 changed files with 62 additions and 15 deletions

View file

@ -59,7 +59,7 @@ namespace swrenderer
}
drawerargs.SetSolidColor(3);
drawerargs.SetTexture(Thread->Viewport.get(), texture);
drawerargs.SetTexture(Thread, texture);
double planeang = (pl->xform.Angle + pl->xform.baseAngle).Radians();
double xstep, ystep, leftxfrac, leftyfrac, rightxfrac, rightyfrac;