[PATCH 4/5] wined3d: Get rid of a NULL check for surface_upload_data().

Henri Verbeet hverbeet at codeweavers.com
Thu Jun 9 13:40:48 CDT 2011


---
 dlls/wined3d/surface.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 06f38b0..25b99fd 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -6165,8 +6165,7 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD flag, const
                 mem = surface->resource.allocatedMemory;
             }
 
-            if (mem || (surface->flags & SFLAG_PBO))
-                surface_upload_data(surface, gl_info, &format, srgb, mem);
+            surface_upload_data(surface, gl_info, &format, srgb, mem);
 
             if (context) context_release(context);
 
-- 
1.7.3.4




More information about the wine-patches mailing list