Пример #1
0
  /** Destroys this {@code GLContext} and releases any resources associated with it. */
  public void destroy() {
    // Clean-up callbacks
    if (capabilities.GL_AMD_debug_output && capabilities.__AMDDebugOutput.DEBUGPROCAMD != NULL)
      AMDDebugOutput.glDebugMessageCallbackAMD(null);
    if (capabilities.OpenGL43 && capabilities.__GL43.DEBUGPROC != NULL)
      GL43.glDebugMessageCallback(null);

    destroyImpl();
  }