d3d11: Set surface and volume parents to NULL.

This commit is contained in:
Stefan Dösinger 2015-09-03 20:56:27 +02:00 committed by Alexandre Julliard
parent fa0041954f
commit b486a23bac
1 changed files with 2 additions and 2 deletions

View File

@ -2885,7 +2885,7 @@ static HRESULT CDECL device_parent_surface_created(struct wined3d_device_parent
TRACE("device_parent %p, container_parent %p, surface %p, parent %p, parent_ops %p.\n", TRACE("device_parent %p, container_parent %p, surface %p, parent %p, parent_ops %p.\n",
device_parent, container_parent, surface, parent, parent_ops); device_parent, container_parent, surface, parent, parent_ops);
*parent = container_parent; *parent = NULL;
*parent_ops = &d3d10_null_wined3d_parent_ops; *parent_ops = &d3d10_null_wined3d_parent_ops;
return S_OK; return S_OK;
@ -2898,7 +2898,7 @@ static HRESULT CDECL device_parent_volume_created(struct wined3d_device_parent *
TRACE("device_parent %p, container_parent %p, volume %p, parent %p, parent_ops %p.\n", TRACE("device_parent %p, container_parent %p, volume %p, parent %p, parent_ops %p.\n",
device_parent, container_parent, volume, parent, parent_ops); device_parent, container_parent, volume, parent, parent_ops);
*parent = container_parent; *parent = NULL;
*parent_ops = &d3d10_null_wined3d_parent_ops; *parent_ops = &d3d10_null_wined3d_parent_ops;
return S_OK; return S_OK;