Matteo Bruni : d3d8/tests: Use a D3DUSAGE_WRITEONLY buffer in test_vb_lock_flags().

Alexandre Julliard julliard at winehq.org
Thu Jan 31 14:50:13 CST 2019


Module: wine
Branch: master
Commit: 8a69db2ffa218fd8644d3fe6fa8878ab089a31ee
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=8a69db2ffa218fd8644d3fe6fa8878ab089a31ee

Author: Matteo Bruni <mbruni at codeweavers.com>
Date:   Thu Jan 31 13:17:25 2019 +0100

d3d8/tests: Use a D3DUSAGE_WRITEONLY buffer in test_vb_lock_flags().

Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d8/tests/device.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d8/tests/device.c b/dlls/d3d8/tests/device.c
index c831748..884cdb1 100644
--- a/dlls/d3d8/tests/device.c
+++ b/dlls/d3d8/tests/device.c
@@ -4566,7 +4566,8 @@ static void test_vb_lock_flags(void)
         return;
     }
 
-    hr = IDirect3DDevice8_CreateVertexBuffer(device, 1024, D3DUSAGE_DYNAMIC, 0, D3DPOOL_DEFAULT, &buffer);
+    hr = IDirect3DDevice8_CreateVertexBuffer(device, 1024, D3DUSAGE_DYNAMIC | D3DUSAGE_WRITEONLY,
+            0, D3DPOOL_DEFAULT, &buffer);
     ok(SUCCEEDED(hr), "Failed to create vertex buffer, hr %#x.\n", hr);
 
     for (i = 0; i < ARRAY_SIZE(test_data); ++i)




More information about the wine-cvs mailing list