diff --git a/src/ComputeSharp.Graphics/GraphicsDevice.cs b/src/ComputeSharp.Graphics/GraphicsDevice.cs index de7b488b..941fb3f5 100644 --- a/src/ComputeSharp.Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp.Graphics/GraphicsDevice.cs @@ -164,11 +164,7 @@ namespace ComputeSharp.Graphics if (fenceValue <= fence.CompletedValue) return; - using ManualResetEvent fenceEvent = new ManualResetEvent(false); - - fence.SetEventOnCompletion(fenceValue, fenceEvent); - - fenceEvent.WaitOne(); + fence.SetEventOnCompletion(fenceValue, default(IntPtr)); } ///