- use the worker threads to clear the stencil buffer
This commit is contained in:
parent
8486cd2c0e
commit
de67393b4e
7 changed files with 66 additions and 20 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue