I have written a program which renders to a bitmap. When it closes wglDeleteContext reports an error which turns out to be ERROR_BUSY (using GetLastError). I have previously deselected that rendering context by calling wglMakeCurrent(NULL, NULL). Does anyone know what could cause this?
Originally posted by Zico: You can try to call glFinish before wglMakeCurrent(NULL, NULL)
I call glFinish when I finish rendering to the bitmap. So it shouldn’t be using the rendering context. This is a minor problem, it only occurs when I close my program (obviously). But it is quite disturbing … I’d like to fix it.
jimmi
[This message has been edited by jimmi (edited 04-26-2002).]