Cant release device context?

dfi

Golden Member
Apr 20, 2001
1,213
0
0
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