forked from MoonsideGames/Refresh
Fix infinite while loop in D3D11_INTERNAL_WaitForFence
parent
b827713cb0
commit
345924f12d
|
@ -3655,17 +3655,17 @@ static void D3D11_INTERNAL_WaitForFence(
|
||||||
|
|
||||||
SDL_LockMutex(renderer->contextLock);
|
SDL_LockMutex(renderer->contextLock);
|
||||||
|
|
||||||
|
do
|
||||||
|
{
|
||||||
res = ID3D11DeviceContext_GetData(
|
res = ID3D11DeviceContext_GetData(
|
||||||
renderer->immediateContext,
|
renderer->immediateContext,
|
||||||
(ID3D11Asynchronous*) fence->handle,
|
(ID3D11Asynchronous*)fence->handle,
|
||||||
&queryData,
|
&queryData,
|
||||||
sizeof(queryData),
|
sizeof(queryData),
|
||||||
0
|
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);
|
SDL_UnlockMutex(renderer->contextLock);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue