David Adam : d3dx9_36: Fix the sprite tests to make them pass in Windows.

Alexandre Julliard julliard at winehq.org
Mon Jul 6 09:33:54 CDT 2009


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

Author: David Adam <david.adam.cnrs at gmail.com>
Date:   Fri Jul  3 18:08:19 2009 +0200

d3dx9_36: Fix the sprite tests to make them pass in Windows.

---

 dlls/d3dx9_36/tests/core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3dx9_36/tests/core.c b/dlls/d3dx9_36/tests/core.c
index d465cba..b1379ef 100644
--- a/dlls/d3dx9_36/tests/core.c
+++ b/dlls/d3dx9_36/tests/core.c
@@ -75,7 +75,7 @@ static void test_ID3DXSprite(IDirect3DDevice9 *device)
     HRESULT hr;
 
     IDirect3DDevice9_GetDirect3D(device, &d3d);
-    hr = IDirect3D9_CheckDeviceFormat(d3d, 0, D3DDEVTYPE_HAL, D3DFMT_UNKNOWN, 0, D3DRTYPE_TEXTURE, D3DFMT_A8R8G8B8);
+    hr = IDirect3D9_CheckDeviceFormat(d3d, D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, D3DFMT_X8R8G8B8, D3DUSAGE_DYNAMIC, D3DRTYPE_TEXTURE, D3DFMT_A8R8G8B8);
     IDirect3D9_Release(d3d);
     ok (hr == D3D_OK, "D3DFMT_A8R8G8B8 not supported\n");
     if (FAILED(hr)) return;




More information about the wine-cvs mailing list