From b480c025edc4e478ad53b1f2fcc6f486893e1287 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Sun, 6 Dec 2020 05:04:29 +0300 Subject: [PATCH] OpenCanopy: Fix assertion with disabled mouse pointer --- Platform/OpenCanopy/OpenCanopy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Platform/OpenCanopy/OpenCanopy.c b/Platform/OpenCanopy/OpenCanopy.c index 7c124503..88804d12 100644 --- a/Platform/OpenCanopy/OpenCanopy.c +++ b/Platform/OpenCanopy/OpenCanopy.c @@ -1151,7 +1151,9 @@ GuiDrawLoop ( // // Clear previous inputs. // - GuiPointerReset (mPointerContext); + if (mPointerContext != NULL) { + GuiPointerReset (mPointerContext); + } GuiKeyReset (mKeyContext); // // Main drawing loop, time and derieve sub-frequencies as required. -- GitLab