wined3d: Simplify wined3d_device_update_sub_resource() a little.