https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f4fb1884a82c2b4cc1379…
commit f4fb1884a82c2b4cc1379c7414ef755606869186
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Sat Jan 4 01:48:04 2020 +0100
Commit: Jérôme Gardou <zefklop(a)users.noreply.github.com>
CommitDate: Wed Feb 26 18:19:18 2020 +0100
[WINESYNC]d3dx9/tests: Expect plain render target creation to work.
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 64b6bb4d4a54642434594f0df2afcd2e90b2a0a8 by Matteo Bruni
<mbruni(a)codeweavers.com>
---
modules/rostests/winetests/d3dx9_36/surface.c | 21 ++++++++++++---------
sdk/tools/winesync/d3dx9.cfg | 2 +-
2 files changed, 13 insertions(+), 10 deletions(-)
diff --git a/modules/rostests/winetests/d3dx9_36/surface.c
b/modules/rostests/winetests/d3dx9_36/surface.c
index 6cb1ddb73ce..b7c52a28b0f 100644
--- a/modules/rostests/winetests/d3dx9_36/surface.c
+++ b/modules/rostests/winetests/d3dx9_36/surface.c
@@ -847,21 +847,24 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
/* non-lockable render target */
hr = IDirect3DDevice9_CreateRenderTarget(device, 256, 256, D3DFMT_A8R8G8B8,
D3DMULTISAMPLE_NONE, 0, FALSE, &newsurf, NULL);
- if (SUCCEEDED(hr)) {
- hr = D3DXLoadSurfaceFromSurface(surf, NULL, NULL, newsurf, NULL, NULL,
D3DX_FILTER_NONE, 0);
- ok(hr == D3D_OK, "D3DXLoadSurfaceFromSurface returned %#x, expected
%#x\n", hr, D3D_OK);
-
- IDirect3DSurface9_Release(newsurf);
- } else skip("Failed to create render target surface\n");
+ ok(hr == D3D_OK, "Unexpected hr %#x.\n", hr);
+ hr = D3DXLoadSurfaceFromSurface(surf, NULL, NULL, newsurf, NULL, NULL,
D3DX_FILTER_NONE, 0);
+ ok(hr == D3D_OK, "Unexpected hr %#x.\n", hr);
+ IDirect3DSurface9_Release(newsurf);
/* non-lockable multisampled render target */
hr = IDirect3DDevice9_CreateRenderTarget(device, 256, 256, D3DFMT_A8R8G8B8,
D3DMULTISAMPLE_2_SAMPLES, 0, FALSE, &newsurf, NULL);
- if (SUCCEEDED(hr)) {
+ if (SUCCEEDED(hr))
+ {
hr = D3DXLoadSurfaceFromSurface(surf, NULL, NULL, newsurf, NULL, NULL,
D3DX_FILTER_NONE, 0);
- ok(hr == D3D_OK, "D3DXLoadSurfaceFromSurface returned %#x, expected
%#x\n", hr, D3D_OK);
+ ok(hr == D3D_OK, "Unexpected hr %#x.\n", hr);
IDirect3DSurface9_Release(newsurf);
- } else skip("Failed to create multisampled render target.\n");
+ }
+ else
+ {
+ skip("Failed to create multisampled render target.\n");
+ }
hr = IDirect3DDevice9_GetRenderTarget(device, 0, &newsurf);
ok(hr == D3D_OK, "IDirect3DDevice9_GetRenderTarget returned %#x, expected
%#x.\n", hr, D3D_OK);
diff --git a/sdk/tools/winesync/d3dx9.cfg b/sdk/tools/winesync/d3dx9.cfg
index 5c969fbf05a..a71df076c17 100644
--- a/sdk/tools/winesync/d3dx9.cfg
+++ b/sdk/tools/winesync/d3dx9.cfg
@@ -33,4 +33,4 @@ files:
include/d3dx9shape.h: sdk/include/dxsdk/d3dx9shape.h
include/d3dx9tex.h: sdk/include/dxsdk/d3dx9tex.h
tags:
- wine: 65956ae50a136fe8467a0332c7495f36617a16dc
+ wine: 64b6bb4d4a54642434594f0df2afcd2e90b2a0a8