Can I delete the shader objects after linking

When I create the shader I have a VS, FS, and the program object. Can I just delete the VS, FS and keep the program object around to reference to the shader I need? I been keeping all three around, but from what I understand you can but if you wanted to change the information or do anything to it you will need those shader objects again to do that?

Thanks

After attaching and linking the shaders objets into the program object they will be referenced by the program object, so you can delete the shader objects of you are not going to need them again.

[ www.trenki.net | vector_math (3d math library) | software renderer ]

Yes you can delete them according to the spec, but older ATI drivers did break if you did this. (I think they have fixed it now)

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.