Example #1
0
func (p *Program) DeleteProgram() {
	gl.DeleteProgram(p.prog)
}
Example #2
0
func (prog *Program) Delete() {
	for _, shader := range prog.shaders {
		shader.Delete()
	}
	gl.DeleteProgram(prog.handle)
}