mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 08:31:56 +00:00
Windows fixup for glGetProcAddressREGAL
This commit is contained in:
parent
0aeace842f
commit
6718b2ccd6
@ -41,10 +41,15 @@
|
|||||||
libRegal.so glGetProcAddressREGAL for looking up
|
libRegal.so glGetProcAddressREGAL for looking up
|
||||||
the GL function pointers. */
|
the GL function pointers. */
|
||||||
|
|
||||||
#undef glGetProcAddressREGAL
|
# undef glGetProcAddressREGAL
|
||||||
extern void *glGetProcAddressREGAL(const GLchar *name);
|
# ifdef WIN32
|
||||||
static PFNGLGETPROCADDRESSREGALPROC regalGetProcAddress = glGetProcAddressREGAL;
|
extern void * __stdcall glGetProcAddressREGAL(const GLchar *name);
|
||||||
#define glGetProcAddressREGAL GLEW_GET_FUN(__glewGetProcAddressREGAL)
|
static void * (__stdcall * regalGetProcAddress) (const GLchar *) = glGetProcAddressREGAL;
|
||||||
|
# else
|
||||||
|
extern void * glGetProcAddressREGAL(const GLchar *name);
|
||||||
|
static void * (*regalGetProcAddress) (const GLchar *) = glGetProcAddressREGAL;
|
||||||
|
# endif
|
||||||
|
# define glGetProcAddressREGAL GLEW_GET_FUN(__glewGetProcAddressREGAL)
|
||||||
|
|
||||||
#elif defined(__sgi) || defined (__sun) || defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
#elif defined(__sgi) || defined (__sun) || defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user