wined3d: Get rid of a NULL check for surface_upload_data().

This commit is contained in:
Henri Verbeet 2011-06-09 20:40:48 +02:00 committed by Alexandre Julliard
parent 9f3e6a20e8
commit a1b8f254b1
1 changed files with 1 additions and 2 deletions

View File

@ -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);