Merge pull request #1 from mlemanczyk/codex/fix-gpu-related-exception-in-evenperfectbitscanner
Serialize GPU context disposal
This commit is contained in:
1 file changed
+3
@@ -115,10 +115,13 @@ public static class GpuContextPool
|
|||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
lock (CreationLock)
|
||||||
{
|
{
|
||||||
ctx.Dispose();
|
ctx.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public struct GpuContextLease : IDisposable
|
public struct GpuContextLease : IDisposable
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user