- use the worker threads to clear the stencil buffer

This commit is contained in:
Magnus Norddahl 2018-06-10 12:42:19 +02:00
commit de67393b4e
7 changed files with 66 additions and 20 deletions

View file

@ -59,10 +59,9 @@ PolyStencilBuffer *PolyStencilBuffer::Instance()
return &buffer;
}
void PolyStencilBuffer::Clear(int newwidth, int newheight, uint8_t stencil_value)
void PolyStencilBuffer::Resize(int newwidth, int newheight)
{
width = newwidth;
height = newheight;
values.resize(width * height);
memset(Values(), stencil_value, width * height);
}