From 8683ce4056e6665eae87add85df4d1593c52e8e7 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Sun, 11 Jun 2023 03:33:42 +0200 Subject: [PATCH] fixed eye blinking in vector graphics examples --- modules/v4d/samples/vector_graphics_and_fb.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/v4d/samples/vector_graphics_and_fb.cpp b/modules/v4d/samples/vector_graphics_and_fb.cpp index 99ef65a74..8e2e40026 100644 --- a/modules/v4d/samples/vector_graphics_and_fb.cpp +++ b/modules/v4d/samples/vector_graphics_and_fb.cpp @@ -6,9 +6,7 @@ using namespace cv::v4d; int main() { Ptr window = V4D::make(Size(1280, 720), cv::Size(), "Vector Graphics and Framebuffer"); -#ifdef __EMSCRIPTEN__ - float start = emscripten_get_now() / 1000.0f; -#endif + //Render the framebuffer in the native window in an endless loop window->run([=]() { //Creates a NanoVG context and draws eyes