[PATCH 3/8] d3d10core/tests: Extend test for ID3D10Device::UpdateSubresource().

Józef Kucia jkucia at codeweavers.com
Tue Jan 19 15:28:07 CST 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/d3d10core/tests/device.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c
index 5d2b4c4..ba35e0d 100644
--- a/dlls/d3d10core/tests/device.c
+++ b/dlls/d3d10core/tests/device.c
@@ -4582,6 +4582,9 @@ static void test_update_subresource(void)
     set_box(&box, 4, 4, 0, 3, 1, 1);
     ID3D10Device_UpdateSubresource(device, (ID3D10Resource *)texture, 0, &box,
             bitmap_data, sizeof(*bitmap_data), 0);
+    set_box(&box, 0, 0, 0, 4, 4, 0);
+    ID3D10Device_UpdateSubresource(device, (ID3D10Resource *)texture, 0, &box,
+            bitmap_data, 4 * sizeof(*bitmap_data), 0);
     ID3D10Device_Draw(device, 4, 0);
     get_texture_readback(backbuffer, &rb);
     for (i = 0; i < 4; ++i)
-- 
2.4.10




More information about the wine-patches mailing list