changeset 1653:2e3b2ed239b9

Fixed usage of object cookie
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 16 Nov 2020 22:17:01 +0100
parents fa9e6bf84958
children 39137da83b0b
files Applications/Platforms/WebAssembly/WebAssemblyViewport.cpp
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Platforms/WebAssembly/WebAssemblyViewport.cpp	Mon Nov 16 20:47:53 2020 +0100
+++ b/Applications/Platforms/WebAssembly/WebAssemblyViewport.cpp	Mon Nov 16 22:17:01 2020 +0100
@@ -274,7 +274,9 @@
     {
       RefreshCanvasSize();
       compositor_->FitContent(controller_->GetScene());
-      OnRequestAnimationFrame(0, reinterpret_cast<void*>(this));  // Mandatory to work with Firefox
+
+      void* cookie = CreateObjectCookie();
+      OnRequestAnimationFrame(0, cookie);  // Mandatory to work with Firefox
     }
   }