mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-26 07:41:58 +00:00
const correctness change for wgl and glx
git-svn-id: https://glew.svn.sourceforge.net/svnroot/glew/trunk/glew@499 783a27ee-832a-0410-bc00-9f386506c6dd
This commit is contained in:
parent
c9a40e3cee
commit
6e0485e351
@ -9,12 +9,12 @@ extern GLboolean glxewContextIsSupported (GLXEWContext* ctx, const char* name);
|
|||||||
#define glxewInit() glxewContextInit(glxewGetContext())
|
#define glxewInit() glxewContextInit(glxewGetContext())
|
||||||
#define glxewIsSupported(x) glxewContextIsSupported(glxewGetContext(), x)
|
#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
|
#define GLXEW_GET_FUN(x) x
|
||||||
|
|
||||||
#else /* GLEW_MX */
|
#else /* GLEW_MX */
|
||||||
|
|
||||||
#define GLXEW_GET_VAR(x) x
|
#define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
|
||||||
#define GLXEW_GET_FUN(x) x
|
#define GLXEW_GET_FUN(x) x
|
||||||
|
|
||||||
extern GLboolean glxewIsSupported (const char* name);
|
extern GLboolean glxewIsSupported (const char* name);
|
||||||
|
@ -9,12 +9,12 @@ GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
|
|||||||
#define wglewInit() wglewContextInit(wglewGetContext())
|
#define wglewInit() wglewContextInit(wglewGetContext())
|
||||||
#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
|
#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
|
#define WGLEW_GET_FUN(x) wglewGetContext()->x
|
||||||
|
|
||||||
#else /* GLEW_MX */
|
#else /* GLEW_MX */
|
||||||
|
|
||||||
#define WGLEW_GET_VAR(x) x
|
#define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
|
||||||
#define WGLEW_GET_FUN(x) x
|
#define WGLEW_GET_FUN(x) x
|
||||||
|
|
||||||
GLEWAPI GLboolean wglewIsSupported (const char* name);
|
GLEWAPI GLboolean wglewIsSupported (const char* name);
|
||||||
|
Loading…
Reference in New Issue
Block a user