Extend GLEW API to support glewContextInit - GL without implied GLX, WGL, EGL initialisation

This commit is contained in:
Nigel Stewart 2019-02-02 23:54:06 +10:00 committed by Nigel Stewart
parent ea2076658a
commit 715afa0ff5
2 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,7 @@ GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
typedef const GLubyte* (GLAPIENTRY * PFNGLGETSTRINGPROC) (GLenum name);
typedef void (GLAPIENTRY * PFNGLGETINTEGERVPROC) (GLenum pname, GLint *params);
static GLenum GLEWAPIENTRY glewContextInit ()
GLenum GLEWAPIENTRY glewContextInit (void)
{
PFNGLGETSTRINGPROC getString;
const GLubyte* s;

View File

@ -27,6 +27,7 @@ VERSION_MICRO GLEW_VERSION_MICRO_STRING
/* API */
GLEWAPI GLenum GLEWAPIENTRY glewInit (void);
GLEWAPI GLenum GLEWAPIENTRY glewContextInit (void);
GLEWAPI GLboolean GLEWAPIENTRY glewIsSupported (const char *name);
#define glewIsExtensionSupported(x) glewIsSupported(x)