Example #1
0
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)
}
Example #2
0
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)
}