From 21f82c08dba8aee0200f18482dc2a8ba612a3d7e Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 24 Jun 2024 20:45:28 +0900 Subject: [PATCH] examples: --unnecessary initial buffer clear --- examples/Example.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/examples/Example.h b/examples/Example.h index d1cb1b0d..19a76bc6 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -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)); } };