Commented out line 134 of PresentEngine.cpp: //RTE on exit wglDXUnregisterObjectNV(gl_handleD3D,gl_handle);