# HG changeset patch # User Sebastien Jodogne # Date 1600348986 -7200 # Node ID a80363b15235af08e59500b10da462e84f0c5230 # Parent b8b4cb58a874236c6b628d98a6d487ce3044aa9c rollback wrongly committed test code diff -r b8b4cb58a874 -r a80363b15235 OrthancStone/Sources/Viewport/WebAssemblyViewport.cpp --- 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(this)); - } - - //emscripten_request_animation_frame(OnRequestAnimationFrame, reinterpret_cast(this)); + emscripten_request_animation_frame(OnRequestAnimationFrame, reinterpret_cast(this)); } void WebAssemblyViewport::AcquireCompositor(ICompositor* compositor /* takes ownership */)