mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 16:53:49 +00:00
Fixup for Windows build concerning GLEWAPIENTRY
This commit is contained in:
parent
a6423f4d98
commit
b850a88492
@ -1,6 +1,6 @@
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
const GLubyte* glewGetErrorString (GLenum error)
|
||||
const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error)
|
||||
{
|
||||
static const GLubyte* _glewErrorString[] =
|
||||
{
|
||||
@ -14,7 +14,7 @@ const GLubyte* glewGetErrorString (GLenum error)
|
||||
return _glewErrorString[(int)error > max_error ? max_error : (int)error];
|
||||
}
|
||||
|
||||
const GLubyte* glewGetString (GLenum name)
|
||||
const GLubyte * GLEWAPIENTRY glewGetString (GLenum name)
|
||||
{
|
||||
static const GLubyte* _glewString[] =
|
||||
{
|
||||
@ -40,7 +40,7 @@ extern GLenum wglewContextInit (void);
|
||||
extern GLenum glxewContextInit (void);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
GLenum glewInit (void)
|
||||
GLenum GLEWAPIENTRY glewInit (void)
|
||||
{
|
||||
GLenum r;
|
||||
r = glewContextInit();
|
||||
|
@ -1,7 +1,7 @@
|
||||
#ifdef GLEW_MX
|
||||
GLboolean glewContextIsSupported (const GLEWContext* ctx, const char* name)
|
||||
#else
|
||||
GLboolean glewIsSupported (const char* name)
|
||||
GLboolean GLEWAPIENTRY glewIsSupported (const char* name)
|
||||
#endif
|
||||
{
|
||||
GLubyte* pos = (GLubyte*)name;
|
||||
|
@ -42,7 +42,7 @@ GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
|
||||
|
||||
#endif /* GLEW_MX */
|
||||
|
||||
GLEWAPI GLboolean GLEWAPIENTRY glewExperimental;
|
||||
GLEWAPI GLboolean glewExperimental;
|
||||
GLEWAPI GLboolean GLEWAPIENTRY glewGetExtension (const char *name);
|
||||
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error);
|
||||
GLEWAPI const GLubyte * GLEWAPIENTRY glewGetString (GLenum name);
|
||||
|
Loading…
Reference in New Issue
Block a user