[PATCH 3/7] wined3d: Pass a texture and sub-resource index to context_restore().