d3d10core/tests: Skip stencil SRV test when SRV creation fails.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Józef Kucia 2017-01-26 13:07:36 +01:00 committed by Alexandre Julliard
parent 5a14dd0c66
commit f1c7834f7b
1 changed files with 8 additions and 0 deletions

View File

@ -6310,6 +6310,14 @@ static void test_depth_stencil_sampling(void)
srv_desc.Format = tests[i].stencil_view_format;
hr = ID3D10Device_CreateShaderResourceView(device, (ID3D10Resource *)texture, &srv_desc, &stencil_srv);
if (hr == E_OUTOFMEMORY)
{
skip("Could not create SRV for format %#x.\n", srv_desc.Format);
ID3D10DepthStencilView_Release(dsv);
ID3D10ShaderResourceView_Release(depth_srv);
ID3D10Texture2D_Release(texture);
continue;
}
ok(SUCCEEDED(hr), "Failed to create stencil shader resource view for format %#x, hr %#x.\n",
srv_desc.Format, hr);