/** * Link this program with all it's attached shaders. * * @param gl * @return true if the linkage was successful and the validation was positive. * @throws RuntimeException * if an OGL exception occurred. */ public boolean linkProgram( GL gl ) throws RuntimeException { boolean result = false; try { linkShaderProgram( gl ); result = true; } catch ( RuntimeException r ) { LOG.error( "Could not link shader because: " + r.getLocalizedMessage(), r ); throw ( r ); } // if ( LOG.isDebugEnabled() ) { try { validateShaderProgram( gl ); } catch ( RuntimeException r ) { LOG.warn( "Shader program source: was not valid because: " + r.getLocalizedMessage() ); result = false; } return result; }