# HG changeset patch # User Benjamin Golinvaux # Date 1605561421 -3600 # Node ID 2e3b2ed239b91bf3dd925d1d1fb009b9bc19e476 # Parent fa9e6bf849585f418b916f32dc21b21d1b55b1a6 Fixed usage of object cookie diff -r fa9e6bf84958 -r 2e3b2ed239b9 Applications/Platforms/WebAssembly/WebAssemblyViewport.cpp --- 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(this)); // Mandatory to work with Firefox + + void* cookie = CreateObjectCookie(); + OnRequestAnimationFrame(0, cookie); // Mandatory to work with Firefox } }