[PATCH 4/5] d3d9/tests: Use a D3DUSAGE_WRITEONLY buffer in test_vb_lock_flags().
Matteo Bruni
mbruni at codeweavers.com
Thu Jan 31 06:17:24 CST 2019
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
dlls/d3d9/tests/device.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d9/tests/device.c b/dlls/d3d9/tests/device.c
index 77bba06fc11..859ca472948 100644
--- a/dlls/d3d9/tests/device.c
+++ b/dlls/d3d9/tests/device.c
@@ -5625,7 +5625,8 @@ static void test_vb_lock_flags(void)
return;
}
- hr = IDirect3DDevice9_CreateVertexBuffer(device, 1024, D3DUSAGE_DYNAMIC, 0, D3DPOOL_DEFAULT, &buffer, NULL);
+ hr = IDirect3DDevice9_CreateVertexBuffer(device, 1024, D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY,
+ 0, D3DPOOL_DEFAULT, &buffer, NULL);
ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);
for (i = 0; i < ARRAY_SIZE(test_data); ++i)
--
2.19.2
More information about the wine-devel
mailing list