- change the software renderer to render to a DSimpleCanvas like the old D3D9 target did. Then use the drawer threads to memcpy the result to the PBO

This commit is contained in:
Magnus Norddahl 2018-07-20 05:48:15 +02:00
commit a841602d70
15 changed files with 70 additions and 28 deletions

View file

@ -153,8 +153,8 @@ void ScreenTriangle::Draw(const TriDrawTriangleArgs *args, PolyTriangleThreadDat
int x = leftEdge[y];
int xend = rightEdge[y];
float *zbufferLine = args->zbuffer + args->pitch * y;
uint8_t *stencilLine = args->stencilbuffer + args->pitch * y;
float *zbufferLine = args->zbuffer + args->stencilpitch * y;
uint8_t *stencilLine = args->stencilbuffer + args->stencilpitch * y;
float startX = x + (0.5f - v1X);
float startY = y + (0.5f - v1Y);