d3d9: 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-19 17:28:46 +01:00 committed by Alexandre Julliard
parent 55f2d655ca
commit bd38c16ec2
1 changed files with 1 additions and 1 deletions

View File

@ -3689,7 +3689,7 @@ static HRESULT CDECL device_parent_create_swapchain_texture(struct wined3d_devic
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->IDirect3DDevice9Ex_iface;
return hr;