I’m currently working on making our OpenGL application Windows 7 compatible and getting rid of lots of legacy code, such us the use of Immediate Mode. While this all goes well, I’m currently unsure about the very need for calling wglMakeCurrent(NULL, NULL).
My colleague discovered that rendering on Windows 7(with DWM enabled) works fine as soon as we add a call to wglMakeCurrent(NULL, NULL) at the end of the render cycle. But this clashes at the moment a bit with how our code loads bitmaps and models during it’s runtime. When we’re loading a model and a redraw is forced by moving the progress window, this will result in a deactivation of the context, and thus failure of the creation of a vertex buffer(We work with rather large models, and require multiple VBOs to be created) and then a crash or hang.
Do we actually require the call to MakeCurrent(NULL, NULL) or is there something else we’re missing? Everything does work fine under Vista after we removed the GDI calls.