retry until device was reset
This commit is contained in:
parent
26175acde7
commit
4c620b224f
2 changed files with 5 additions and 1 deletions
|
@ -553,6 +553,9 @@ DWORD WINAPI d3d9_render_main(void)
|
|||
{
|
||||
DWORD_PTR result;
|
||||
SendMessageTimeout(g_ddraw->hwnd, WM_D3D9DEVICELOST, 0, 0, 0, 1000, &result);
|
||||
|
||||
ReleaseSemaphore(g_ddraw->render.sem, 1, NULL);
|
||||
Sleep(50);
|
||||
}
|
||||
|
||||
#if _DEBUG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue