Serialize GPU context disposal

This commit is contained in:
Marek Lemańczyk committed 2025-09-09 21:28:22 +02:00
1 parent 9f35f6c558
commit 0470da1e89
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
{ {