[PATCH 3/5] wined3d: Avoid heap_alloc in update_sub_resource.