diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-08 02:15:51 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-08 02:15:51 +0400 |
commit | 47b8bf591cda04701cf8d7e1e576a40fc98884b0 (patch) | |
tree | 862187e66ac19d4c034fcfb492c268b20e6424a7 /intern | |
parent | be3a6d78e8689fb700b1cafd71b565831cb5762f (diff) |
Fix more issues after recent context commit
Diffstat (limited to 'intern')
-rw-r--r-- | intern/glew-mx/intern/glew-mx.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/intern/glew-mx/intern/glew-mx.c b/intern/glew-mx/intern/glew-mx.c index 35f2be20fb6..8b0ab42c0c0 100644 --- a/intern/glew-mx/intern/glew-mx.c +++ b/intern/glew-mx/intern/glew-mx.c @@ -69,6 +69,9 @@ GLenum glew_chk(GLenum error, const char *file, int line, const char *text) code ? code : "<no symbol>", msg ? msg : "<no message>"); #else + (void) file; + (void) line; + (void) text; fprintf(stderr, "GLEW Error (0x%04X): %s: %s\n", error, @@ -88,7 +91,7 @@ MXContext *_mx_context = NULL; MXContext *mxCreateContext(void) { -#if WITH_GLEW_MX +#ifdef WITH_GLEW_MX MXContext* new_ctx = calloc(1, sizeof(MXContext)); if (new_ctx != NULL) { @@ -108,7 +111,7 @@ MXContext *mxCreateContext(void) MXContext *mxGetCurrentContext(void) { -#if WITH_GLEW_MX +#ifdef WITH_GLEW_MX return _mx_context; #else return NULL; @@ -118,7 +121,7 @@ MXContext *mxGetCurrentContext(void) void mxMakeCurrentContext(MXContext *ctx) { -#if WITH_GLEW_MX +#ifdef WITH_GLEW_MX _mx_context = ctx; #else (void)ctx; @@ -128,7 +131,7 @@ void mxMakeCurrentContext(MXContext *ctx) void mxDestroyContext(MXContext *ctx) { -#if WITH_GLEW_MX +#ifdef WITH_GLEW_MX if (_mx_context == ctx) _mx_context = NULL; |