Detach program object

Due to the design of my code I think its possible that the program could delete the program object handle before the last frame is drawn when i close the application.
I guess that just this is causing the crash when i terminate the app.
To fix this i need to do the opposite of glUseProgramObjectARB when it is called the first time.
Using another shader instead wouldnt fix anything.
Is there such a function?


Thank you very much.

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