d3d10core/tests: Extend test for ID3D10Device::UpdateSubresource().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2016-01-19 22:28:07 +01:00 committed by Alexandre Julliard
parent 8330635c93
commit f26e13f38f
1 changed files with 3 additions and 0 deletions

View File

@ -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)