Browse Source

Avoid usage of `CreateEventEx` in D3D12 GPU backend

Unavailable in Windows XP.
Clownacy 4 months ago
parent
commit
79f6f766d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/gpu/d3d12/SDL_gpu_d3d12.c

+ 1 - 1
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];