d3d10core/tests: Add test for NULL resource parameters for _CopySubresourceRegion().
Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
434a6444c3
commit
1799afe9c9
|
@ -9819,6 +9819,15 @@ static void test_copy_subresource_region(void)
|
|||
|
||||
ID3D10Device_ClearRenderTargetView(device, test_context.backbuffer_rtv, red);
|
||||
|
||||
if (!is_warp_device(device))
|
||||
{
|
||||
/* Broken on Win2008 Warp */
|
||||
ID3D10Device_CopySubresourceRegion(device, (ID3D10Resource *)dst_texture, 0,
|
||||
1, 1, 0, NULL, 0, &box);
|
||||
ID3D10Device_CopySubresourceRegion(device, NULL, 0,
|
||||
1, 1, 0, (ID3D10Resource *)src_texture, 0, &box);
|
||||
}
|
||||
|
||||
set_box(&box, 0, 0, 0, 2, 2, 1);
|
||||
ID3D10Device_CopySubresourceRegion(device, (ID3D10Resource *)dst_texture, 0,
|
||||
1, 1, 0, (ID3D10Resource *)src_texture, 0, &box);
|
||||
|
|
Loading…
Reference in New Issue