d3d11/tests: Extend test for ID3D11DeviceContext::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:06 +01:00 committed by Alexandre Julliard
parent 3d7c666005
commit 8330635c93
1 changed files with 3 additions and 0 deletions

View File

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