=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: d3d11/tests: Extend test for ID3D11DeviceContext::UpdateSubresource().

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 20 10:50:02 CST 2016


Module: wine
Branch: master
Commit: 8330635c93c392b4f1e12c1127dd5682cb6c1ae0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8330635c93c392b4f1e12c1127dd5682cb6c1ae0

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Jan 19 22:28:06 2016 +0100

d3d11/tests: Extend test for ID3D11DeviceContext::UpdateSubresource().

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/d3d11/tests/d3d11.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 5c6efaf..cb3f185 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -4227,6 +4227,9 @@ static void test_update_subresource(void)
     set_box(&box, 4, 4, 0, 3, 1, 1);
     ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
             bitmap_data, sizeof(*bitmap_data), 0);
+    set_box(&box, 0, 0, 0, 4, 4, 0);
+    ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)texture, 0, &box,
+            bitmap_data, 4 * sizeof(*bitmap_data), 0);
     ID3D11DeviceContext_Draw(context, 4, 0);
     get_texture_readback(backbuffer, &rb);
     for (i = 0; i < 4; ++i)




More information about the wine-cvs mailing list