From e5f8678140660e1eff24ea3604f0f4bc800386bf Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 6 Oct 2019 09:11:36 +1100 Subject: [PATCH] Fix plugins not working with non-MSVC builds --- src/Core.h | 3 +-- src/Window.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Core.h b/src/Core.h index b019c5f05..4cd6fcdc1 100644 --- a/src/Core.h +++ b/src/Core.h @@ -65,8 +65,7 @@ typedef unsigned __INTPTR_TYPE__ cc_uintptr; #define CC_VAR __attribute__((visibility("default"))) #endif #endif -#define CC_HAS_VARS - +#define CC_HAS_MISC #ifdef __BIG_ENDIAN__ #define CC_BIG_ENDIAN #endif diff --git a/src/Window.c b/src/Window.c index fb09ef697..051c27308 100644 --- a/src/Window.c +++ b/src/Window.c @@ -3180,7 +3180,7 @@ void GLContext_Update(void) { /* TODO: do we need to do something here.... ? */ } bool GLContext_TryRestore(void) { - return !emscripten_is_webgl_context_lost(ctx_handle); + return !emscripten_is_webgl_context_lost(NULL); } void GLContext_Free(void) {