Serialize GPU context disposal
This commit is contained in:
1 parent
9f35f6c558
commit
0470da1e89
1 file changed
+8
-5
@@ -114,11 +114,14 @@ public static class GpuContextPool
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
ctx.Dispose();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
lock (CreationLock)
|
||||
{
|
||||
ctx.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public struct GpuContextLease : IDisposable
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user