Greetings,
My OpenGL application doesn’t close properly. When I close the program, I get a message box pops up that says “User breakpoint called from code at 0x77f75a58”. After I click “ok”, the program is at a breakpoint that in assembly code is
77F75A58 int 3
This happens when I call wglDeleteContext. The code in my destructor is:
wglMakeCurrent(hdc, NULL);
wglDeleteContext(hrc); // Problem
I’ve checked the values of hdc and hrc and they look valid. Any thoughts?
Thanks,
Slammo