[PATCH 1/3] d3d8/tests: Don't require dynamic usage for textures in the stateblock tests.

Henri Verbeet hverbeet at codeweavers.com
Thu Nov 12 03:26:51 CST 2009


Not all cards support dynamic usage textures, and we don't actually need it.
---
 dlls/d3d8/tests/stateblock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/d3d8/tests/stateblock.c b/dlls/d3d8/tests/stateblock.c
index 30d022c..630c4de 100644
--- a/dlls/d3d8/tests/stateblock.c
+++ b/dlls/d3d8/tests/stateblock.c
@@ -1737,7 +1737,7 @@ static void resource_test_data_init(IDirect3DDevice8 *device,
     data->tex = HeapAlloc(GetProcessHeap(), 0, arg->tex_count * sizeof(*data->tex));
     for (i = 0; i < arg->tex_count; ++i)
     {
-        hr = IDirect3DDevice8_CreateTexture(device, 64, 64, 0, D3DUSAGE_DYNAMIC,
+        hr = IDirect3DDevice8_CreateTexture(device, 64, 64, 0, 0,
                 D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &data->tex[i]);
         ok(SUCCEEDED(hr), "CreateTexture (%u) returned hr %#x.\n", i, hr);
     }
-- 
1.6.4.4




More information about the wine-patches mailing list