Executing gl calls just before program exits?

Does any body know how to get informed on the gl rendering thread of your progams exit.

I’m starting to use server side vertex buffer objects and want to delete these buffers when my programs exit. How can I get a valid gl context when my proigram is exiting. I’m using the GLJPanel but I don’t know if trapping a window closing event via a component listener would give me a valid context.

If you’re on an OS with process isolation then you really don’t need to clean up these objects. This is why there is no “destroy” callback in the GLEventListener. My recommendation would be to just leave them alone.