=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: d3d8/tests: Create a plain DS surface in test_reset_resources.

Alexandre Julliard julliard at winehq.org
Wed Jan 16 13:47:43 CST 2013


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Wed Jan 16 12:44:16 2013 +0100

d3d8/tests: Create a plain DS surface in test_reset_resources.

---

 dlls/d3d8/tests/device.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index 87d3f9e..ca34b81 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -3252,12 +3252,9 @@ static void test_reset_resources(void)
         goto done;
     }
 
-    hr = IDirect3DDevice8_CreateTexture(device, 128, 128, 1, D3DUSAGE_DEPTHSTENCIL,
-            D3DFMT_D24S8, D3DPOOL_DEFAULT, &texture);
-    ok(SUCCEEDED(hr), "Failed to create depth/stencil texture, hr %#x.\n", hr);
-    hr = IDirect3DTexture8_GetSurfaceLevel(texture, 0, &surface);
-    ok(SUCCEEDED(hr), "Failed to get surface, hr %#x.\n", hr);
-    IDirect3DTexture8_Release(texture);
+    hr = IDirect3DDevice8_CreateDepthStencilSurface(device, 128, 128, D3DFMT_D24S8,
+            D3DMULTISAMPLE_NONE, &surface);
+    ok(SUCCEEDED(hr), "Failed to create depth/stencil surface, hr %#x.\n", hr);
 
     hr = IDirect3DDevice8_CreateTexture(device, 128, 128, 1, D3DUSAGE_RENDERTARGET,
             D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &texture);




More information about the wine-cvs mailing list