From a10804ea4177ac8b14260a82c57fff6c9137c24b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Wed, 16 May 2018 11:55:30 +0200 Subject: [PATCH] d3d10core/tests: Correctly check for multisample support. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/d3d10core/tests/device.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c index be09f44c03c..4b39c1be256 100644 --- a/dlls/d3d10core/tests/device.c +++ b/dlls/d3d10core/tests/device.c @@ -16281,7 +16281,8 @@ static void test_alpha_to_coverage(void) ID3D10Texture2D_GetDesc(test_context.backbuffer, &texture_desc); hr = ID3D10Device_CheckMultisampleQualityLevels(device, texture_desc.Format, 4, &quality_level_count); - if (FAILED(hr)) + ok(hr == S_OK, "Failed to check multisample quality levels, hr %#x.\n", hr); + if (!quality_level_count) { skip("4xMSAA not supported.\n"); goto done; @@ -16794,8 +16795,9 @@ static void test_multisample_resolve(void) return; device = test_context.device; - if (FAILED(hr = ID3D10Device_CheckMultisampleQualityLevels(device, - DXGI_FORMAT_R8G8B8A8_TYPELESS, 4, &i))) + hr = ID3D10Device_CheckMultisampleQualityLevels(device, DXGI_FORMAT_R8G8B8A8_TYPELESS, 4, &i); + ok(hr == S_OK, "Failed to check multisample quality levels, hr %#x.\n", hr); + if (!i) { skip("4xMSAA not supported.\n"); release_test_context(&test_context);