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

wined3d: Fix error code returned when render target view description is invalid.

parent 838ecc1c
......@@ -120,7 +120,7 @@ static HRESULT wined3d_rendertarget_view_init(struct wined3d_rendertarget_view *
|| desc->u.texture.layer_idx >= depth_or_layer_count
|| !desc->u.texture.layer_count
|| desc->u.texture.layer_count > depth_or_layer_count - desc->u.texture.layer_idx)
return WINED3DERR_INVALIDCALL;
return E_INVALIDARG;
view->sub_resource_idx = desc->u.texture.level_idx;
if (resource->type != WINED3D_RTYPE_TEXTURE_3D)
......
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