MCPcopy Index your code
hub / github.com/benfry/processing4 / report

Method report

core/src/processing/opengl/PGraphicsOpenGL.java:5308–5317  ·  view source on GitHub ↗

Report on anything from glError(). Don't use this inside glBegin/glEnd otherwise it'll throw an GL_INVALID_OPERATION error.

(String where)

Source from the content-addressed store, hash-verified

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

Callers 2

beginDrawMethod · 0.95
endDrawMethod · 0.95

Calls 3

showWarningMethod · 0.95
getErrorMethod · 0.45
errorStringMethod · 0.45

Tested by

no test coverage detected