d3d9/tests: Skip test_vshader_input() if PS 3.0 isn't supported.

Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Matteo Bruni 2017-03-08 20:45:47 +01:00 committed by Alexandre Julliard
parent 2568fd2e00
commit 101159309f
1 changed files with 6 additions and 0 deletions

View File

@ -7828,6 +7828,12 @@ static void test_vshader_input(void)
IDirect3DDevice9_Release(device);
goto done;
}
if (caps.PixelShaderVersion < D3DPS_VERSION(3, 0))
{
skip("No ps_3_0 support, skipping tests.\n");
IDirect3DDevice9_Release(device);
goto done;
}
hr = IDirect3D9_GetAdapterIdentifier(d3d, D3DADAPTER_DEFAULT, 0, &identifier);
ok(SUCCEEDED(hr), "Failed to get adapter identifier, hr %#x.\n", hr);