Skip to content

Commit

Permalink
Fix plugins not working with non-MSVC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Oct 5, 2019
1 parent aa05582 commit e5f8678
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/Core.h
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Window.c
Expand Up @@ -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) {
Expand Down

0 comments on commit e5f8678

Please sign in to comment.