changeset 1566:a80363b15235

rollback wrongly committed test code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 15:23:06 +0200
parents b8b4cb58a874
children 37d90bd69f31
files OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp
diffstat 1 files changed, 1 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp	Thu Sep 17 15:19:48 2020 +0200
+++ b/OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp	Thu Sep 17 15:23:06 2020 +0200
@@ -207,15 +207,7 @@
 
   void WebAssemblyViewport::Invalidate()
   {
-    if (compositor_.get() != NULL &&
-        controller_ /* should always be true */)
-    {
-      printf("TOTO3\n");
-      UpdateSize(*compositor_);
-      OnRequestAnimationFrame(0, reinterpret_cast<void*>(this));
-    }
-    
-    //emscripten_request_animation_frame(OnRequestAnimationFrame, reinterpret_cast<void*>(this));
+    emscripten_request_animation_frame(OnRequestAnimationFrame, reinterpret_cast<void*>(this));
   }
 
   void WebAssemblyViewport::AcquireCompositor(ICompositor* compositor /* takes ownership */)