From 376acfacdb0f7a58fbb25492c5525138d46c6257 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 a407b6f0..33b493f2 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -296,9 +296,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 @@ -357,9 +354,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 @@ -455,9 +449,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)); } };