Reputation: 3032
I create the GL Rendering Context successfully (I checked return values of all WinApi functions). When I am trying to destroy the context using the following piece of code it fails:
bool success = ::wglMakeCurrent ( 0, 0 ); // false
success = ::wglDeleteContext ( glRenderingContext_ ); // false
All described above happens in one thread. What is wrong?
Upvotes: 1
Views: 892
Reputation: 2292
Did you destroy the window that held the device and rendering contexts before making this call? You should shut down your rendering context before you destroy your window.
Upvotes: 2