From ac86fcb5e947963c67eb1a22740435a84567f44d Mon Sep 17 00:00:00 2001 From: medcelerate Date: Sat, 11 May 2024 15:43:36 -0400 Subject: [PATCH] Changed to Loading check --- src/VDJTouchEngine.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VDJTouchEngine.cpp b/src/VDJTouchEngine.cpp index eb306a5..cee45ac 100644 --- a/src/VDJTouchEngine.cpp +++ b/src/VDJTouchEngine.cpp @@ -243,7 +243,7 @@ HRESULT VDJ_API VDJTouchEngine::OnDraw() { return Result; } - if (!isTouchEngineReady) { + if (!isTouchEngineLoaded) { return S_FALSE; } @@ -585,6 +585,7 @@ bool VDJTouchEngine::LoadTEFile() // Load the tox file into the TouchEngine // 1. Create a TouchEngine object + if (instance == nullptr) { LoadTouchEngine(); @@ -609,6 +610,7 @@ bool VDJTouchEngine::LoadTEFile() return false; } + result = TEInstanceLoad(instance); if (result != TEResultSuccess) {