wined3d: The destination width and height are always valid in surface_cpu_blt().

Since they have been validated by the caller.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-04-11 23:24:21 +02:00 committed by Alexandre Julliard
parent d6557e8129
commit 3e36857557
1 changed files with 0 additions and 3 deletions

View File

@ -2945,9 +2945,6 @@ static HRESULT surface_cpu_blt(struct wined3d_texture *dst_texture, unsigned int
{
int sx, xinc, sy, yinc;
if (!dst_width || !dst_height) /* Hmm... stupid program? */
goto release;
if (filter != WINED3D_TEXF_NONE && filter != WINED3D_TEXF_POINT
&& (src_width != dst_width || src_height != dst_height))
{