Commit 70bb7878 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9/tests: Properly check whether creating a device succeeded in test_flip().

parent 3932b2f2
...@@ -20984,9 +20984,8 @@ static void test_flip(void) ...@@ -20984,9 +20984,8 @@ static void test_flip(void)
present_parameters.Windowed = TRUE; present_parameters.Windowed = TRUE;
present_parameters.BackBufferCount = 3; present_parameters.BackBufferCount = 3;
present_parameters.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER; present_parameters.Flags = D3DPRESENTFLAG_LOCKABLE_BACKBUFFER;
hr = IDirect3D9_CreateDevice(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, if (FAILED(hr = IDirect3D9_CreateDevice(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL,
window, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device); window, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &present_parameters, &device)))
if (!device)
{ {
skip("Failed to create a D3D device, skipping tests.\n"); skip("Failed to create a D3D device, skipping tests.\n");
IDirect3D9_Release(d3d); IDirect3D9_Release(d3d);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment