Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

VanKurt

Why cant I use Extensions ?

This topic is 6047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In order to use extension-functions I first get the list: char *extensionStr; extensionStr = (char*)glGetString(GL_EXTENSIONS); if (extensionStr == NULL) { ErrorMessage("1"); return false; } But when running this code I get the error-message "1". So I took a look at the error: if(glGetError() == GL_INVALID_OPERATION) ErrorMessage("Invalid operation"); This code produces the message, so I know that my error is "GL_INVALID_OPERATION". In the MSDN it says that this error occurs when you call glGetString() between glBegin() und glEnd(), but I''m NOT doing this. So what could be the reason ? And why does the MSDN lie ?

Share this post


Link to post
Share on other sites
Advertisement
> So what could be the reason ?

Do you have an active rendering context when you call glGetExtensions() ? If not, the call fails.

> And why does the MSDN lie ?

It doesn''t *lie*, it just does have a lack of precision.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!