d3d8: Use wined3d_texture_get_sub_resource_parent() in device_parent_create_swapchain_texture().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-02-17 18:35:30 +01:00 committed by Alexandre Julliard
parent fdeaf812e2
commit bdc31c99c4
1 changed files with 1 additions and 1 deletions

View File

@ -3042,7 +3042,7 @@ static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_devic
return hr; return hr;
} }
d3d_surface = wined3d_resource_get_parent(wined3d_texture_get_sub_resource(*texture, 0)); d3d_surface = wined3d_texture_get_sub_resource_parent(*texture, 0);
d3d_surface->parent_device = &device->IDirect3DDevice8_iface; d3d_surface->parent_device = &device->IDirect3DDevice8_iface;
return hr; return hr;