[PATCH] wined3d: Unify the texture download functions.