Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
1618:9a52bac0c2a7 | 1619:4c9e68291467 |
---|---|
86 { | 86 { |
87 // False means we do NOT let Windows treat this as a legacy application that needs to be scaled | 87 // False means we do NOT let Windows treat this as a legacy application that needs to be scaled |
88 return SdlOpenGLViewport::Create(canvasId, 1024, 1024, false); | 88 return SdlOpenGLViewport::Create(canvasId, 1024, 1024, false); |
89 } | 89 } |
90 | 90 |
91 void RtViewerView::CleanupViewportEvents() | |
92 { | |
93 // only used in WASM at the moment | |
94 } | |
95 | |
91 void RtViewerApp::ProcessOptions(int argc, char* argv[]) | 96 void RtViewerApp::ProcessOptions(int argc, char* argv[]) |
92 { | 97 { |
93 namespace po = boost::program_options; | 98 namespace po = boost::program_options; |
94 po::options_description desc("Usage"); | 99 po::options_description desc("Usage"); |
95 | 100 |