func glDisposeShaderProg(sp shaderProg) { gl.DetachShader(sp.glProg, sp.glFragShader) gl.DetachShader(sp.glProg, sp.glVertShader) gl.DeleteShader(sp.glFragShader) gl.DeleteShader(sp.glVertShader) gl.DeleteProgram(sp.glProg) }
func (me *ShaderProgram) CleanUp() { gl.DetachShader(me.Program, me.FShader) gl.DetachShader(me.Program, me.VShader) gl.DeleteShader(me.FShader) gl.DeleteShader(me.VShader) gl.DeleteProgram(me.Program) }