View Full Version : wglDeleteContext error
jimmi
04-25-2002, 06:48 AM
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?
jimmi
You can try to call glFinish before wglMakeCurrent(NULL, NULL)
jimmi
04-26-2002, 06:54 AM
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).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.