diff Applications/Platforms/WebAssembly/WebAssemblyViewport.cpp @ 1653:2e3b2ed239b9

Fixed usage of object cookie
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 16 Nov 2020 22:17:01 +0100
parents 74be0f498b08
children cc5a2e076746
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
     }
   }