From: Ben H. <be...@ex...> - 2001-11-15 04:13:49
|
Csopengl.c: ------ DLLOBJ int DMrelease3DCtxt(HG3D ctxt) { if(!ctxt) return 1; if(ctxt->glctxt) wglDeleteContext(ctxt->glctxt); if(ctxt->gdi) ReleaseDC(ctxt->wnd, ctxt->gdi); free(ctxt); return 1; } ------ I did some checks and unless you dispose of OpenGLContext from the thread on which you created it, instead of letting the GC delete it later, both the wglDeleteContext() and ReleaseDC() will fail. Currently "csopengl.c" doesn't check if they fail so you would never know if you are writing bad code. This was actually causing a bunch of crashes on my machine until I figured out the problem. =20 Cheers, -ben houston 4th Year Cognitive Science/Neuroscience Carleton University, Ottawa, Canada ( be...@ex... / 613-266-0637 ) =A0=20 |