src/main/java/com/spinyowl/legui/demo/SingleClassExampleGuiOverGL.java
public void dispose() {
    // Unbind the program
    unbind();

    // Detach the shaders
    glDetachShader(programID, vertexShaderID);
    glDetachShader(programID, fragmentShaderID);

    // Delete the shaders
    glDeleteShader(vertexShaderID);
    glDeleteShader(fragmentShaderID);

    // Delete the program
    glDeleteProgram(programID);
  }
/**
   * Dispose the program and shaders.
   */
Dispose the program and shaders.
Dispose the program and shaders .
public void dispose() {
    unbind();
    glDetachShader(programID, vertexShaderID);
    glDetachShader(programID, fragmentShaderID);
    glDeleteShader(vertexShaderID);
    glDeleteShader(fragmentShaderID);
    glDeleteProgram(programID);
  }
public void dispose ( ) { unbind ( ) ; glDetachShader ( programID , vertexShaderID ) ; glDetachShader ( programID , fragmentShaderID ) ; glDeleteShader ( vertexShaderID ) ; glDeleteShader ( fragmentShaderID ) ; glDeleteProgram ( programID ) ; }
Dispose the program and shaders.
Dispose the program and shaders .
// Unbind the program // Detach the shaders // Delete the shaders // Delete the program