diff --git a/examples/DirectUpdate.cpp b/examples/DirectUpdate.cpp index 4be30471..14ee8f91 100644 --- a/examples/DirectUpdate.cpp +++ b/examples/DirectUpdate.cpp @@ -66,6 +66,9 @@ struct UserExample : tvgexam::Example { if (!canvas) return false; + //clear buffer and redraw! + if (!tvgexam::verify(canvas->clear(false))) return false; + auto progress = tvgexam::progress(elapsed, 2.0f, true); //play time 2 sec. //Reset Shape