Nikolay Sivov : mfplat/tests: Switch to a different texture format to enable more tests on older versions.

Alexandre Julliard julliard at winehq.org
Wed Feb 3 15:39:29 CST 2021


Module: wine
Branch: master
Commit: b9dd3272ff7e10cdcafa54d34ce8868ee49b1753
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=b9dd3272ff7e10cdcafa54d34ce8868ee49b1753

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Feb  3 14:27:56 2021 +0300

mfplat/tests: Switch to a different texture format to enable more tests on older versions.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mfplat/tests/mfplat.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 949e8e5feed..71294686ae0 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -6212,7 +6212,7 @@ static void test_dxgi_surface_buffer(void)
     desc.Width = 64;
     desc.Height = 64;
     desc.ArraySize = 1;
-    desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
+    desc.Format = DXGI_FORMAT_B8G8R8A8_UNORM;
     desc.SampleDesc.Count = 1;
     desc.SampleDesc.Quality = 0;
 
@@ -6220,14 +6220,7 @@ static void test_dxgi_surface_buffer(void)
     ok(hr == S_OK, "Failed to create a texture, hr %#x.\n", hr);
 
     hr = pMFCreateDXGISurfaceBuffer(&IID_ID3D11Texture2D, (IUnknown *)texture, 0, FALSE, &buffer);
-    ok(hr == S_OK || broken(hr == MF_E_INVALIDMEDIATYPE) /* Win8 */, "Failed to create a buffer, hr %#x.\n", hr);
-
-    if (FAILED(hr))
-    {
-        ID3D11Texture2D_Release(texture);
-        ID3D11Device_Release(device);
-        return;
-    }
+    ok(hr == S_OK, "Failed to create a buffer, hr %#x.\n", hr);
 
     check_interface(buffer, &IID_IMF2DBuffer, TRUE);
     check_interface(buffer, &IID_IMF2DBuffer2, TRUE);




More information about the wine-cvs mailing list