[PATCH 3/5] wined3d: The destination width and height are always valid in surface_cpu_blt().
Henri Verbeet
hverbeet at codeweavers.com
Tue Apr 11 16:24:21 CDT 2017
Since they have been validated by the caller.
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
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))
{
--
2.1.4
More information about the wine-patches
mailing list