mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
examples: --unnecessary initial buffer clear
This commit is contained in:
parent
f202137acd
commit
21f82c08db
1 changed files with 0 additions and 9 deletions
|
@ -294,9 +294,6 @@ struct SwWindow : Window
|
|||
|
||||
//Set the canvas target and draw on it.
|
||||
verify(canvas->target((uint32_t*)surface->pixels, surface->w, surface->pitch / 4, surface->h, tvg::SwCanvas::ARGB8888));
|
||||
|
||||
//Clear the canvas target buffer
|
||||
verify(canvas->clear(false));
|
||||
}
|
||||
|
||||
void refresh() override
|
||||
|
@ -355,9 +352,6 @@ struct GlWindow : Window
|
|||
{
|
||||
//Set the canvas target and draw on it.
|
||||
verify(canvas->target(0, width, height));
|
||||
|
||||
//Clear the canvas target buffer
|
||||
verify(canvas->clear(false));
|
||||
}
|
||||
|
||||
void refresh() override
|
||||
|
@ -453,9 +447,6 @@ struct WgWindow : Window
|
|||
{
|
||||
//Set the canvas target and draw on it.
|
||||
verify(canvas->target(instance, surface, width, height));
|
||||
|
||||
//Clear the canvas target buffer
|
||||
verify(canvas->clear(false));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue