Hello Johannes, Johannes Brunen wrote: > I have some questions with respect to the resource management of render > contexts and display lists. > > After debugging my application (Win32, OpenSG 2.0), I did see that the > glDeleteLists call, associated to a former glGenLists call, is not > executed in the Geometry core class on termination of the underlying > window.
yes, the problem is that the GL context would need to be active in order to call glDeleteLists. > Am I save to expect that the wglDeleteContext call also frees > the resources allocated by the display lists of that context? that is the assumption made in Window::onDestroy, FWIW it does not seem unreasonable to me. Do you observe that it's not working that way? > Or do I > have to take extra measures to clean up my window (e.g. resetting the > scene manager explicitly)? You could make sure you destroy the scene first and then go through a final activate(); frameInit(); frameExit(); deactivate() sequence which will clean up things (specifically the cleanup happens in frameExit). However, if you only want to get rid of the window and keep the scene, you'd have to rely on the context destruction cleaning up resources. Cheers, Carsten ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users