Hi
I’m just wondering if display lists that i use in my program will automaticly be destroyed/removed from memory when the program closes, or if i have to use glDestroyLists? Usually they wouldn’t, but because of java i’m just curious if the trash man does:P
As far as I know, you don’t need to worry about this. The operating system is responsible for cleaning up after a process terminates.
That was not what the guys at #opengl told me, but they said that with jogl it may be different since java has a garbage collector
the garbage collector works on java objects, not GL resources.
The OS/driver take care of that for you, AFAIK, no OpenGL app needs to destroy any sort of resources when exiting. Im not talking about just Display lists, textures, VBOs, shaders…etc
DP