Report on anything from glError(). Don't use this inside glBegin/glEnd otherwise it'll throw an GL_INVALID_OPERATION error.
(String where)
| 5306 | * throw an GL_INVALID_OPERATION error. |
| 5307 | */ |
| 5308 | protected void report(String where) { |
| 5309 | if (!hints[DISABLE_OPENGL_ERRORS]) { |
| 5310 | int err = pgl.getError(); |
| 5311 | if (err != 0) { |
| 5312 | String errString = pgl.errorString(err); |
| 5313 | String msg = "OpenGL error " + err + " at " + where + ": " + errString; |
| 5314 | PGraphics.showWarning(msg); |
| 5315 | } |
| 5316 | } |
| 5317 | } |
| 5318 | |
| 5319 | |
| 5320 |
no test coverage detected