From 79f6f766d48c916b2dd00f194ed5725980386954 Mon Sep 17 00:00:00 2001
From: Clownacy <[EMAIL REDACTED]>
Date: Sun, 24 Nov 2024 01:02:06 +0000
Subject: [PATCH] Avoid usage of `CreateEventEx` in D3D12 GPU backend
Unavailable in Windows XP.
---
src/gpu/d3d12/SDL_gpu_d3d12.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c
index 320c8e38d5131..d6c15723e5406 100644
--- a/src/gpu/d3d12/SDL_gpu_d3d12.c
+++ b/src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -6849,7 +6849,7 @@ static D3D12Fence *D3D12_INTERNAL_AcquireFence(
return NULL;
}
fence->handle = handle;
- fence->event = CreateEventEx(NULL, 0, 0, EVENT_ALL_ACCESS);
+ fence->event = CreateEvent(NULL, 0, 0, NULL);
SDL_SetAtomicInt(&fence->referenceCount, 0);
} else {
fence = renderer->availableFences[renderer->availableFenceCount - 1];