wined3d: Validate "data" in wined3d_texture_upload_data().