glGetString/Extensions

Hello,

maybe I am simply to stupid but I have a problem with getting strings (like the extensions strings, but the same with vendor etc.) with glGetStrings.

char* myString;
myString=(char*)glGetStrings(GL_EXTENSIONS);

myString is always NULL after that. what is going wrong? I have a gf4 ti 4200 and rather new (if not latest) NVIDIA drivers and glext.h, althouhg gl.h says that it’s mesa. Are there special OpenGL header files by NVIDIA? I use SuSE 8.1.

thanks
Jan

I find it odd that your code even compiles. It should be glGetString without the ‘s’ at the end.

But, if that was a typo, as I suspect it was, you must have created a valid current gl context prior to calling any gl function otherwise the function errors.

[This message has been edited by shinpaughp (edited 04-27-2003).]

thanks, that’s it . of course the s was a typo.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.