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

d3d11/tests: Check return value of CheckMultisampleQualityLevels() (Coverity).

parent faec0676
......@@ -2381,7 +2381,8 @@ static void test_create_texture2d(void)
check_interface(texture, &IID_IDXGISurface, FALSE, FALSE);
ID3D11Texture2D_Release(texture);
ID3D11Device_CheckMultisampleQualityLevels(device, DXGI_FORMAT_R8G8B8A8_UNORM, 2, &quality_level_count);
hr = ID3D11Device_CheckMultisampleQualityLevels(device, DXGI_FORMAT_R8G8B8A8_UNORM, 2, &quality_level_count);
ok(hr == S_OK, "Failed to check multisample quality levels, hr %#x.\n", hr);
desc.ArraySize = 1;
desc.SampleDesc.Count = 2;
hr = ID3D11Device_CreateTexture2D(device, &desc, NULL, &texture);
......@@ -12298,7 +12299,8 @@ static void test_check_multisample_quality_levels(void)
return;
}
ID3D11Device_CheckMultisampleQualityLevels(device, DXGI_FORMAT_R8G8B8A8_UNORM, 2, &quality_levels);
hr = ID3D11Device_CheckMultisampleQualityLevels(device, DXGI_FORMAT_R8G8B8A8_UNORM, 2, &quality_levels);
ok(hr == S_OK, "Failed to check multisample quality levels, hr %#x.\n", hr);
if (!quality_levels)
{
skip("Multisampling not supported for DXGI_FORMAT_R8G8B8A8_UNORM, skipping test.\n");
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