Interpreting glGetError() results... drv differences?


Using glGetError to retrieve if the error flag has been set, is it safe to assume that this finds only programmatic errors? Or, will certain device drivers toggle the error flag and set the error to some condition, where another would not?

Example given: While working on my current application, during debug, I call glGetError once per state change, to assist in catching any programmatic errors I may have. Can I assume that the behavior of the glGetError return will be the same across all graphics adapters?



That’s probably a reasonable assumption. The OpenGL specification defines when error conditions are set, and OpenGL implementations are tested on conformity to the specification.