From 101159309f1a0b1dcdabd9ce1ae09068269e2265 Mon Sep 17 00:00:00 2001 From: Matteo Bruni Date: Wed, 8 Mar 2017 20:45:47 +0100 Subject: [PATCH] d3d9/tests: Skip test_vshader_input() if PS 3.0 isn't supported. Signed-off-by: Matteo Bruni Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3d9/tests/visual.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c index c8cab8cbd49..e012d1b2b09 100644 --- a/dlls/d3d9/tests/visual.c +++ b/dlls/d3d9/tests/visual.c @@ -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);