diff --git a/auto/src/glxew_tail.h b/auto/src/glxew_tail.h index ed3be17..702eb94 100644 --- a/auto/src/glxew_tail.h +++ b/auto/src/glxew_tail.h @@ -9,12 +9,12 @@ extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name); #define glxewInit() glxewContextInit(glxewGetContext()) #define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x) -#define GLXEW_GET_VAR(x) glxewGetContext()->x +#define GLXEW_GET_VAR(x) (*(const GLboolean*)&(glxewGetContext()->x)) #define GLXEW_GET_FUN(x) x #else /* GLEW_MX */ -#define GLXEW_GET_VAR(x) x +#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x) #define GLXEW_GET_FUN(x) x extern GLboolean glxewIsSupported (const char* name); diff --git a/auto/src/wglew_tail.h b/auto/src/wglew_tail.h index 2addbcf..7bb9bf8 100644 --- a/auto/src/wglew_tail.h +++ b/auto/src/wglew_tail.h @@ -9,12 +9,12 @@ GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name); #define wglewInit() wglewContextInit(wglewGetContext()) #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) -#define WGLEW_GET_VAR(x) wglewGetContext()->x +#define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) #define WGLEW_GET_FUN(x) wglewGetContext()->x #else /* GLEW_MX */ -#define WGLEW_GET_VAR(x) x +#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) #define WGLEW_GET_FUN(x) x GLEWAPI GLboolean wglewIsSupported (const char* name);