I’m experiencing a crash on DX when I close the app.
It happens here, on dxShaderContext9.cxx
void CLP(ShaderContext)::
release_resources() {
#ifdef HAVE_CG
if (_cg_context) {
cgDestroyContext(_cg_context); //crash
I tried building against a new CG toolkit (Panda uses 2.1.7 and 2.2 is available) and same thing. Any clues why this could be happening now? Actually I don’t know if it didn’t happen before because I’m using another PC temporarily with a crappy 8400GS, and maybe it only happens here.
EDIT: I tried the following:
if (cgIsContext(_cg_context) == CG_TRUE){
cgDestroyContext(_cg_context);
}
But it still goes inside and crashes on cgDestroyContext.