Remove the warning when a context being released is globally current

Just about every implementation allows this, and there's no direct harm caused
by it. However, leave the warnings for when it's still current on specific
threads, as this can cause issues.
This commit is contained in:
Chris Robinson
2012-01-01 15:36:31 -08:00
parent 5500ed9209
commit 18216ab1a9
-3
View File
@@ -1458,10 +1458,7 @@ static void ReleaseContext(ALCcontext *context, ALCdevice *device)
}
if(CompExchangePtr((XchgPtr*)&GlobalContext, context, NULL))
{
WARN("%p released while current\n", context);
ALCcontext_DecRef(context);
}
LockDevice(device);
tmp_ctx = &device->ContextList;