Archived

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

VanKurt

Why cant I use Extensions ?

Recommended Posts

VanKurt    133
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
Prosper/LOADED    100
> 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