hopefully fix crash-on-shutdown of the ODE plugin. Make sure there's no active contexts before the ode dll is unloaded.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4836 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
23971df104
commit
8cb0834782
1 changed files with 1 additions and 1 deletions
|
@ -2779,9 +2779,9 @@ static void World_ODE_RunCmd(world_t *world, rbecommandqueue_t *cmd)
|
||||||
|
|
||||||
static qintptr_t QDECL Plug_ODE_Shutdown(qintptr_t *args)
|
static qintptr_t QDECL Plug_ODE_Shutdown(qintptr_t *args)
|
||||||
{
|
{
|
||||||
World_ODE_Shutdown();
|
|
||||||
if (modfuncs)
|
if (modfuncs)
|
||||||
modfuncs->UnregisterPhysicsEngine("ODE");
|
modfuncs->UnregisterPhysicsEngine("ODE");
|
||||||
|
World_ODE_Shutdown();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue