use FAILED macro for d3d9 present
This commit is contained in:
parent
6558ddb000
commit
167bb4238c
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ DWORD WINAPI render_d3d9_main(void)
|
||||||
IDirect3DDevice9_DrawPrimitive(D3dDev, D3DPT_TRIANGLESTRIP, 0, 2);
|
IDirect3DDevice9_DrawPrimitive(D3dDev, D3DPT_TRIANGLESTRIP, 0, 2);
|
||||||
IDirect3DDevice9_EndScene(D3dDev);
|
IDirect3DDevice9_EndScene(D3dDev);
|
||||||
|
|
||||||
if (IDirect3DDevice9_Present(D3dDev, NULL, NULL, NULL, NULL) == D3DERR_DEVICELOST)
|
if (FAILED(IDirect3DDevice9_Present(D3dDev, NULL, NULL, NULL, NULL)))
|
||||||
{
|
{
|
||||||
DWORD_PTR dwResult;
|
DWORD_PTR dwResult;
|
||||||
SendMessageTimeout(ddraw->hWnd, WM_D3D9DEVICELOST, 0, 0, 0, 1000, &dwResult);
|
SendMessageTimeout(ddraw->hWnd, WM_D3D9DEVICELOST, 0, 0, 0, 1000, &dwResult);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue