wined3d: Simplify surface_upload_from_surface.

Gerald Pfeifer gerald at pfeifer.com
Thu Jul 12 17:56:55 CDT 2012


---
 dlls/wined3d/surface.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index ea0baa4..584c405 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2553,7 +2553,6 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
     struct wined3d_format format;
     UINT update_w, update_h;
     UINT dst_w, dst_h;
-    UINT src_w, src_h;
     RECT r, dst_rect;
     UINT src_pitch;
     POINT p;
@@ -2598,9 +2597,6 @@ HRESULT surface_upload_from_surface(struct wined3d_surface *dst_surface, const P
         return WINED3DERR_INVALIDCALL;
     }
 
-    src_w = src_surface->resource.width;
-    src_h = src_surface->resource.height;
-
     dst_w = dst_surface->resource.width;
     dst_h = dst_surface->resource.height;
 
-- 
1.7.11.1



More information about the wine-patches mailing list