@Override public void error(final int errnum) { String estring; estring = glu.gluErrorString(errnum); System.err.println("Tessellation Error: " + estring); // System.exit(0);s }
public static void checkGLError(String message) { int error = sGL10.glGetError(); if (error > 0) throw new RuntimeException( "OpenGL Error: " + GLU.gluErrorString(error) + " " + error + " | " + message); }