Yes. Then you can safely remove the shader. This is actually the preferred method because you have less maintenance. You do not need to keep track of what needs to be removed, and you cannot forget to do it. And it will work anyway.
The "removal" of the shader, as with all OpenGL objects, simply sets a flag that says that you no longer need it. OpenGL will support it until it is needed, and will perform the actual uninstall at any time later (most likely, but not necessarily, after uninstalling the program).
Damon Feb 02 2018-12-12T00: 00Z
source share