From 3e3685755783602de257ef89258a1ebad6d30959 Mon Sep 17 00:00:00 2001 From: Henri Verbeet <hverbeet@codeweavers.com> Date: Tue, 11 Apr 2017 23:24:21 +0200 Subject: [PATCH] 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> --- dlls/wined3d/surface.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index d8092828acb..a811d6a21df 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -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)) { -- GitLab