I am using wlgGetProcAddress
to get functions using a context created with wglCreateContext
. I have set the context with wglMakeCurrent
. I get a valid function pointer for glGetStringi
, but I get NULL
for glGetString
. I thought that glGetString
and glGetStringi
were introduced in the same version of OpenGL (1.0). Any ideas why I am getting this NULL
?
const GLubyte* (*glGetString)(GLenum);
const GLubyte* (*glGetStringi)(GLenum, GLuint);
glGetString = reinterpret_cast<decltype(glGetString)>(wglGetProcAddress("glGetString"));
glGetStringi = reinterpret_cast<decltype(glGetStringi)>(wglGetProcAddress("glGetStringi"));
In case it matters, I have a Radeon HD 7950 with driver version 13.251.0.0.