diff --git a/include/GL/glew.h b/include/GL/glew.h index b4177c6..db1c56a 100644 --- a/include/GL/glew.h +++ b/include/GL/glew.h @@ -2476,8 +2476,10 @@ typedef void (GLAPIENTRY * PFNGLMINSAMPLESHADINGPROC) (GLclampf value); #define GL_VERSION_4_5 1 typedef GLenum (GLAPIENTRY * PFNGLGETGRAPHICSRESETSTATUSPROC) (void); +typedef void (GLAPIENTRY * PFNGLGETNTEXIMAGEPROC) (GLenum tex, GLint level, GLenum format, GLenum type, GLsizei bufSize, GLvoid *pixels); #define glGetGraphicsResetStatus GLEW_GET_FUN(__glewGetGraphicsResetStatus) +#define glGetnTexImage GLEW_GET_FUN(__glewGetnTexImage) #define GLEW_VERSION_4_5 GLEW_GET_VAR(__GLEW_VERSION_4_5) @@ -16449,6 +16451,7 @@ GLEW_FUN_EXPORT PFNGLBLENDFUNCIPROC __glewBlendFunci; GLEW_FUN_EXPORT PFNGLMINSAMPLESHADINGPROC __glewMinSampleShading; GLEW_FUN_EXPORT PFNGLGETGRAPHICSRESETSTATUSPROC __glewGetGraphicsResetStatus; +GLEW_FUN_EXPORT PFNGLGETNTEXIMAGEPROC __glewGetnTexImage; GLEW_FUN_EXPORT PFNGLTBUFFERMASK3DFXPROC __glewTbufferMask3DFX; diff --git a/src/glew.c b/src/glew.c index fc4484a..142bfeb 100644 --- a/src/glew.c +++ b/src/glew.c @@ -613,6 +613,7 @@ PFNGLBLENDFUNCIPROC __glewBlendFunci = NULL; PFNGLMINSAMPLESHADINGPROC __glewMinSampleShading = NULL; PFNGLGETGRAPHICSRESETSTATUSPROC __glewGetGraphicsResetStatus = NULL; +PFNGLGETNTEXIMAGEPROC __glewGetnTexImage = NULL; PFNGLTBUFFERMASK3DFXPROC __glewTbufferMask3DFX = NULL; @@ -3918,6 +3919,7 @@ static GLboolean _glewInit_GL_VERSION_4_5 (GLEW_CONTEXT_ARG_DEF_INIT) GLboolean r = GL_FALSE; r = ((glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)glewGetProcAddress((const GLubyte*)"glGetGraphicsResetStatus")) == NULL) || r; + r = ((glGetnTexImage = (PFNGLGETNTEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glGetnTexImage")) == NULL) || r; return r; } diff --git a/src/glewinfo.c b/src/glewinfo.c index 47802c6..1afe5a6 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -569,6 +569,7 @@ static void _glewInfo_GL_VERSION_4_5 (void) glewPrintExt("GL_VERSION_4_5", GLEW_VERSION_4_5, GLEW_VERSION_4_5, GLEW_VERSION_4_5); glewInfoFunc("glGetGraphicsResetStatus", glGetGraphicsResetStatus == NULL); + glewInfoFunc("glGetnTexImage", glGetnTexImage == NULL); } #endif /* GL_VERSION_4_5 */