diff Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp @ 1619:4c9e68291467

Added code to remove the wheel callback in dtor, to prevent access to dead object
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 02 Nov 2020 17:55:35 +0100
parents 5887a4f8594b
children 7fc8a3ff09ee
line wrap: on
line diff
--- a/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Mon Nov 02 17:54:18 2020 +0100
+++ b/Applications/Samples/Sdl/RtViewer/RtViewerSdl.cpp	Mon Nov 02 17:55:35 2020 +0100
@@ -88,6 +88,11 @@
     return SdlOpenGLViewport::Create(canvasId, 1024, 1024, false);
   }
 
+  void RtViewerView::CleanupViewportEvents()
+  {
+    // only used in WASM at the moment
+  }
+
   void RtViewerApp::ProcessOptions(int argc, char* argv[])
   {
     namespace po = boost::program_options;