d3d9/tests: Test the return of CreateDepthStencilSurface()

Michael Stefaniuc mstefani at redhat.de
Tue Oct 20 02:48:28 CDT 2015


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/d3d9/tests/visual.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index e26293a..1b78114 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -16211,6 +16211,7 @@ static void resz_test(void)
     IDirect3DSurface9_Release(ds);
     hr = IDirect3DDevice9_CreateDepthStencilSurface(device, 640, 480, D3DFMT_D24S8,
             D3DMULTISAMPLE_NONE, 0, TRUE, &ds, NULL);
+    ok(SUCCEEDED(hr), "Failed to create depth stencil surface, hr = %08x.\n", hr);
 
     hr = IDirect3DDevice9_SetRenderTarget(device, 0, readback);
     ok(SUCCEEDED(hr), "Failed to set render target, hr %#x.\n", hr);
@@ -19769,6 +19770,7 @@ static void test_depthbias(void)
 
         hr = IDirect3DDevice9_CreateDepthStencilSurface(device, 640, 480, formats[i],
                 D3DMULTISAMPLE_NONE, 0, FALSE, &ds, NULL);
+        ok(SUCCEEDED(hr), "Failed to create depth stencil surface, hr = %08x.\n", hr);
         hr = IDirect3DDevice9_SetDepthStencilSurface(device, ds);
         ok(SUCCEEDED(hr), "Failed to set depth stencil surface, hr %#x.\n", hr);
         hr = IDirect3DDevice9_Clear(device, 0, NULL, D3DCLEAR_TARGET | D3DCLEAR_ZBUFFER, 0x00000000, 0.5f, 0);
-- 
2.4.3



More information about the wine-patches mailing list