-
Junior Member
Regular Contributor
weird opengl error problem
ok, this is kinda a weird error, and its not that important, but i thought id ask anyway. first, the code im using to grab and output the latest opengl error:
error=glGetError();
if ( error != GL_NO_ERROR);
{
errorstring=gluErrorString(error);
fprintf(stderr, "OpenGL error: %s\n", errorstring);
}
seems simple enough (i ripped it from the red book), but every time that bit of code is run, it outputs the error string, even when the error is "no error." id rather it not do this. can anybody see anything wrong with this?
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules