Skip to content

Commit

Permalink
Merge pull request #852 from webmixedreality/ml-exit-log
Browse files Browse the repository at this point in the history
Add MLContext exit logging
  • Loading branch information
Avaer Kazmer authored Mar 13, 2019
2 parents f877815 + f2ca18c commit 36eb739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/exokit-bindings/magicleap/src/magicleap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3095,6 +3095,8 @@ NAN_METHOD(MLContext::Present) {
}

NAN_METHOD(MLContext::Exit) {
ML_LOG(Info, "%s: MLContext exit start", application_name);

MLContext *mlContext = ObjectWrap::Unwrap<MLContext>(info.This());

if (MLGraphicsDestroyClient(&mlContext->graphics_client) != MLResult_Ok) {
Expand Down Expand Up @@ -3158,6 +3160,8 @@ NAN_METHOD(MLContext::Exit) {

// HACK: force the app to be "stopped"
application_context.dummy_value = DummyValue::STOPPED;

ML_LOG(Info, "%s: MLContext exit end", application_name);
}

/* NAN_METHOD(MLContext::WaitGetPoses) {
Expand Down

0 comments on commit 36eb739

Please sign in to comment.