Avoid usage of `CreateEventEx` in D3D12 GPU backend

Unavailable in Windows XP.
This commit is contained in:
Clownacy 2024-11-24 01:02:06 +00:00 committed by GitHub
parent fdafa266d8
commit 79f6f766d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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];