mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d9: Replace wined3d_surface_blt with wined3d_texture_blt in d3d9_device_StretchRect.
Signed-off-by: Riccardo Bortolato <rikyz619@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f3c69e40dc
commit
1da007e75d
1 changed files with 2 additions and 1 deletions
|
@ -1349,7 +1349,8 @@ static HRESULT WINAPI d3d9_device_StretchRect(IDirect3DDevice9Ex *iface, IDirect
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hr = wined3d_surface_blt(dst->wined3d_surface, dst_rect, src->wined3d_surface, src_rect, 0, NULL, filter);
|
hr = wined3d_texture_blt(dst->wined3d_texture, dst->sub_resource_idx, dst_rect,
|
||||||
|
src->wined3d_texture, src->sub_resource_idx, src_rect, 0, NULL, filter);
|
||||||
if (hr == WINEDDERR_INVALIDRECT)
|
if (hr == WINEDDERR_INVALIDRECT)
|
||||||
hr = D3DERR_INVALIDCALL;
|
hr = D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue