Merge pull request #1 from mlemanczyk/codex/fix-gpu-related-exception-in-evenperfectbitscanner

Serialize GPU context disposal
This commit is contained in:
Marek Lemańczyk authored and GitHub committed 2025-09-09 21:28:36 +02:00
commit 15e84d5845
1 file changed
+8 -5
+8 -5
View File
@@ -114,11 +114,14 @@ public static class GpuContextPool
} }
} }
else else
{ {
ctx.Dispose(); lock (CreationLock)
} {
} ctx.Dispose();
}
}
}
public struct GpuContextLease : IDisposable public struct GpuContextLease : IDisposable
{ {