Signed-off-by: Paul Gofman pgofman@codeweavers.com --- v2: - avoid crashing on Win2008 Warp.
dlls/d3d10core/tests/d3d10core.c | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/dlls/d3d10core/tests/d3d10core.c b/dlls/d3d10core/tests/d3d10core.c index deb6144a4be..4332ce2dcf2 100644 --- a/dlls/d3d10core/tests/d3d10core.c +++ b/dlls/d3d10core/tests/d3d10core.c @@ -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);