How to clean up

I just want to use GLSL to render volume.Does not want to it affect other object.I try to use glDetachShader(),glDeleteShader, and glDeleteProgram(),but seems no effect.
What should I do?

  • Klaus

Thank you klaus, it is very effective.

This was something I was searching for how to do for days. You can also use glUseProgram(0).