Commit cd243969 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

wined3d: Do not copy surface region when empty box is passed.

parent ccbe3a58
......@@ -4004,6 +4004,14 @@ HRESULT CDECL wined3d_device_copy_sub_resource_region(struct wined3d_device *dev
if (src_box)
{
if (src_box->front >= src_box->back)
{
WARN("Invalid box (%u, %u, %u)->(%u, %u, %u) specified.\n",
src_box->left, src_box->top, src_box->front,
src_box->right, src_box->bottom, src_box->back);
return WINED3DERR_INVALIDCALL;
}
src_rect.left = src_box->left;
src_rect.top = src_box->top;
src_rect.right = src_box->right;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment