Fix infinite while loop in D3D11_INTERNAL_WaitForFence
continuous-integration/drone/pr Build is failing Details

pull/47/head
Caleb Cornett 2024-02-11 00:40:48 -06:00
parent b827713cb0
commit 345924f12d
1 changed files with 9 additions and 9 deletions

View File

@ -3655,6 +3655,8 @@ static void D3D11_INTERNAL_WaitForFence(
SDL_LockMutex(renderer->contextLock);
do
{
res = ID3D11DeviceContext_GetData(
renderer->immediateContext,
(ID3D11Asynchronous*)fence->handle,
@ -3662,10 +3664,8 @@ static void D3D11_INTERNAL_WaitForFence(
sizeof(queryData),
0
);
while (res != S_OK)
{
/* Spin until we get a result back... */
}
while (res != S_OK); /* Spin until we get a result back... */
SDL_UnlockMutex(renderer->contextLock);
}