glGetString()
Hi guys,
Im having trouble with glGetString(). Using VC++ 2003.
Eg. My code is - const GLubyte* gl_vend = glGetString(GL_VENDOR);
I'm getting a NULL pointer returned (Im using the debugger to look at the value). Any ideas on why it won't work? I don't think an extension is needed?
Also, how would I go about casting gl_vend to a standard C++ string?
Thanks for any help!
Just a guess, but in order to execute any GL command you have to create a valid GL rendering context first. Have you done that?
Quote:Original post by Cacks
Also, how would I go about casting gl_vend to a standard C++ string?
std::string glVendor = reinterpret_cast< char const * >(glGetString(GL_VENDOR));
Enigma
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement