hello, i’m trying to build a program that display the OpengL version and Extensions of the API present on my computer. The problem is that when i try to execute this code :
const unsigned char * version ;
version = (const unsigned char *)glGetString(GL_RENDERER);
printf ("My OpenGL version is %s
", version);
it returns me a Null string…
could someone explain me what i did wrong there ?
PS : it does the same with GL_VENDOR or GL_RENDERER…