Henri Verbeet : d3d9/tests: Don' t require dynamic usage for textures in the stateblock tests.
Alexandre Julliard
julliard at winehq.org
Thu Nov 12 10:22:09 CST 2009
Module: wine
Branch: master
Commit: 5f8e6cb5e0e0188243ba973d8a00c9635dbbce19
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5f8e6cb5e0e0188243ba973d8a00c9635dbbce19
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Nov 12 10:26:52 2009 +0100
d3d9/tests: Don't require dynamic usage for textures in the stateblock tests.
---
dlls/d3d9/tests/stateblock.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/tests/stateblock.c b/dlls/d3d9/tests/stateblock.c
index d8f75c3..f580062 100644
--- a/dlls/d3d9/tests/stateblock.c
+++ b/dlls/d3d9/tests/stateblock.c
@@ -1966,7 +1966,7 @@ static void resource_test_data_init(IDirect3DDevice9 *device,
data->tex = HeapAlloc(GetProcessHeap(), 0, arg->tex_count * sizeof(*data->tex));
for (i = 0; i < arg->tex_count; ++i)
{
- hr = IDirect3DDevice9_CreateTexture(device, 64, 64, 0, D3DUSAGE_DYNAMIC,
+ hr = IDirect3DDevice9_CreateTexture(device, 64, 64, 0, 0,
D3DFMT_A8R8G8B8, D3DPOOL_DEFAULT, &data->tex[i], NULL);
ok(SUCCEEDED(hr), "CreateTexture (%u) returned %#x.\n", i, hr);
}
More information about the wine-cvs
mailing list