From 6359b055009ff02d21680b770d961dbc327cb373 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 4 Jul 2022 17:04:30 +0200 Subject: [PATCH] Fix access violation on NS2.0 target due to wrong marshal method --- src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs b/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs index b227f950..27266a2d 100644 --- a/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs +++ b/src/ComputeSharp/Graphics/GraphicsDevice.DeviceLost.cs @@ -18,7 +18,7 @@ unsafe partial class GraphicsDevice /// /// A cached instance wrapping . /// - private static readonly WaitForSingleObjectCallbackDelegate WaitForSingleObjectCallbackForRegisterDeviceLostCallbackWrapper = WaitForSingleObjectCallbackForWaitForFenceAsync; + private static readonly WaitForSingleObjectCallbackDelegate WaitForSingleObjectCallbackForRegisterDeviceLostCallbackWrapper = WaitForSingleObjectCallbackForRegisterDeviceLostCallback; #endif ///