Original Post
i was bug hunting the other day, and traced a memory leak down to where i was setting the active context between a PBuffer and the window's context. The actual line that causes the memory leak appears to be wglMakeCurrent(). I wrote a dummy application to test this and it caused the leak as well, as does the OpenGL demos in the ATI SDK. Is there anything i should be doing before/after wglMakeCurrent to stop this leak? Any help appreciated. - also, the memory is cleaned up when the program shuts down too, but i dont want to be leaking memory during the execution....