View Full Version : wglDeleteContext cleanup?

04-25-2005, 10:12 PM
If I go through the steps to create a OpenGL device using wglCreateContext(), and then
I create several textures and/or display lists using this device, what will happen if
I call wglDeleteContext() to delete it? Will it cleanup everything (textures, display lists,etc..)
by itself, or will it choke and create a memory leak and crash? The docs don't say
if this function does any cleanup or not.

04-26-2005, 02:27 AM
If they don't say, then GL drivers can be designed in any way they like.
By all means, delete what you allocate. I know the red book examples don't bother but it's better to do it.