Commit ceef3a84 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d3dx9_36/tests: Actually test retrieve_device_state calls (PVS-Studio).

parent dcba8edb
......@@ -875,6 +875,7 @@ static void test_ID3DXRenderToSurface_device_state(IDirect3DDevice9 *device)
}
hr = retrieve_device_state(device, &pre_state);
ok(SUCCEEDED(hr), "Failed to retrieve device state\n");
hr = D3DXCreateRenderToSurface(device, 256, 256, D3DFMT_A8R8G8B8, TRUE, D3DFMT_D24X8, &render);
ok(hr == D3D_OK, "D3DXCreateRenderToSurface returned %#x, expected %#x\n", hr, D3D_OK);
......@@ -1100,6 +1101,7 @@ static void test_ID3DXRenderToEnvMap_cube_map(IDirect3DDevice9 *device)
}
hr = retrieve_device_state(device, &pre_state);
ok(SUCCEEDED(hr), "Failed to retrieve device state\n");
hr = D3DXCreateRenderToEnvMap(device, 256, 0, D3DFMT_A8R8G8B8, TRUE, D3DFMT_D24X8, &render);
ok(hr == D3D_OK, "D3DCreateRenderToEnvMap returned %#x, expected %#x\n", hr, D3D_OK);
......
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