Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
False internal OpenGL errors #340
The function "glCheck()" is used after each internal OpenGL call. But if the user uses it's own OpenGL calls, the error checking can fire false positives. For example when the user produces an OpenGL error but didn't fetch it, the at SFML's next OpenGL call "glCheck()" will print in error, which actually isn't located at that file.
Maybe it can be fixed by checking for OpenGL errors before each batch of internal OpenGL calls and if positive, tell the user something like "There was an OpenGL error caused by the user". (By user I mean the developer who uses the SFML framework)
As with saving/restoring context settings, I don't think this should happen by default, because it will add additional overhead for people not using custom calls or doing proper error checking. On the other side, I could imagine some cleanup such as this in