Please be patient w/ me as I’m new to OpenGL… Currently I’m writing a program on NT using MFC. It allows for the opening and closing of several different windows. So, I’m making calls to get a device context, set the pixels, get a rendering context, make it current, draw w/ OpenGL, delete the rendering context, and then release the device context every time a window is opened and then closed. Using the Task Manager, it appears that I’m losing memory each time a window is opened and closed. More specifically, wglCreateContext() and wglMakeCurrent() consume more memory than wglDeleteContext() frees up. This program does the same thing on XP as well. Am I missing something? Does it have to be this way? Any suggestions?
Thanks for taking a look at this.