@Override
    public void deleteShaderSource(ShaderSource source) {
        if (source.getId() < 0) {
            logger.warning("Shader source is not uploaded to GPU, cannot delete.");
            return;
        }
        source.clearUpdateNeeded();
        gl.glDeleteShader(source.getId());
        source.resetObject();
    }
Updates all shader's buffer blocks.

@param shader the shader.
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java