Commit a518e5c9 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3d9/tests: Skip test_sample_attached_rendertarget() without pixel shaders support.

parent 07228191
......@@ -26877,6 +26877,7 @@ static void test_sample_attached_rendertarget(void)
unsigned int color, i;
IDirect3D9 *d3d;
ULONG refcount;
D3DCAPS9 caps;
BOOL is_warp;
HWND window;
HRESULT hr;
......@@ -26926,6 +26927,17 @@ static void test_sample_attached_rendertarget(void)
return;
}
hr = IDirect3DDevice9_GetDeviceCaps(device, &caps);
ok(hr == D3D_OK, "Got unexpected hr %#lx.\n", hr);
if (caps.PixelShaderVersion < D3DPS_VERSION(2, 0))
{
skip("No shader model 2 support, skipping tests.\n");
IDirect3DDevice9_Release(device);
IDirect3D9_Release(d3d);
DestroyWindow(window);
return;
}
hr = IDirect3DDevice9_CreateQuery(device, D3DQUERYTYPE_EVENT, NULL);
if (hr == D3DERR_NOTAVAILABLE)
{
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