Module: wine Branch: master Commit: 3e3685755783602de257ef89258a1ebad6d30959 URL: http://source.winehq.org/git/wine.git/?a=commit;h=3e3685755783602de257ef8925...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Tue Apr 11 23:24:21 2017 +0200
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 d809282..a811d6a 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)) {