I'm using win32 and opengl. I've done this before w/o a hitch. But now, I can't release the dc. What could possibly be the cause?
I do the following when the application starts:
GetDC
SetPixelFormat
wglCreateContext
wglMakeCurrent
When the app closes, I do:
wglMakeCurrent(NULL, NULL);
wglDeleteContext
ReleaseDC
I test to see if ReleaseDC is indeed releasing the device context, and it's not. Any ideas?
dfi
I do the following when the application starts:
GetDC
SetPixelFormat
wglCreateContext
wglMakeCurrent
When the app closes, I do:
wglMakeCurrent(NULL, NULL);
wglDeleteContext
ReleaseDC
I test to see if ReleaseDC is indeed releasing the device context, and it's not. Any ideas?
dfi