wglMakeCurrent fails with GL_INVALID_OPERATION error

I have some established OpenGL code, which is working fine, but now I need to change the way I define the window that I’m going to the drawing into. The new window is not really defined terribly differently, but now wglMakeCurrent is failing with a GL_INVALID_OPERATION error. I have no idea why, and GL_INVALID_OPERATION is not really a terribly useful error message. Is there any way to find out what the conditions under which wglMakeCurrent will fail with that error are? The code that sets up the pixel format seems to still be working fine, and the CreateContext call works as well. If anyone has any suggestions, I would appreciate hearing about them. I’ve made sure that the new window is defined with CS_OWNDC, as well. :frowning:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.