Commit 1798864e authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

parent f1c7834f
...@@ -6624,6 +6624,14 @@ static void test_depth_stencil_sampling(void) ...@@ -6624,6 +6624,14 @@ static void test_depth_stencil_sampling(void)
srv_desc.Format = tests[i].stencil_view_format; srv_desc.Format = tests[i].stencil_view_format;
hr = ID3D11Device_CreateShaderResourceView(device, (ID3D11Resource *)texture, &srv_desc, &stencil_srv); hr = ID3D11Device_CreateShaderResourceView(device, (ID3D11Resource *)texture, &srv_desc, &stencil_srv);
if (hr == E_OUTOFMEMORY)
{
skip("Could not create SRV for format %#x.\n", srv_desc.Format);
ID3D11DepthStencilView_Release(dsv);
ID3D11ShaderResourceView_Release(depth_srv);
ID3D11Texture2D_Release(texture);
continue;
}
ok(SUCCEEDED(hr), "Failed to create stencil shader resource view for format %#x, hr %#x.\n", ok(SUCCEEDED(hr), "Failed to create stencil shader resource view for format %#x, hr %#x.\n",
srv_desc.Format, hr); srv_desc.Format, hr);
......
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