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:
parent
fdeaf812e2
commit
bdc31c99c4
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue