package com.io7m.jcanephora;

import org.lwjgl.opengl.GL11;

/**
 * A simple class for checking if an OpenGL error has occurred.
 */

public final class GLError
{
  public static void check(
    final GLInterface gl)
    throws GLException
  {
    final int code = gl.getError();

    if (code != GL11.GL_NO_ERROR) {
      throw new GLException(code, "OpenGL error: code " + code);
    }
  }
}

@@ -156,16 +156,326 @@
 Error%0A%7B%0A
+  /**%0A   * Raise %3Ccode%3EGLException%3C/code%3E iff the current OpenGL error state is not%0A   * %3Ccode%3EGL_NO_ERROR%3C/code%3E.%0A   * %0A   * @param gl%0A   *          The current OpenGL interface.%0A   * @throws GLException%0A   *           Iff the current OpenGL error state is not%0A   *           %3Ccode%3EGL_NO_ERROR%3C/code%3E.%0A   */%0A%0A
   public

Update javadoc