When my application starts, OpenGL is initialized without a problem. But if the display mode is changed, and OpenGL re-created, SetPixelFormat fails. Does anyone have any idea what can be causing this? I’ve tried it without changing the display mode or pixel format, just simply re-creating OpenGL, and it still fails. The DC is valid, plus ChoosePixelFormat works.
It is irrelevant whether the program is in windowed or fullscreen modes, I’ve tried both, and re-creating OpenGL in both modes.