Update webrender and serde_bytes

This commit is contained in:
Anthony Ramine 2019-10-11 19:40:15 +02:00 committed by Josh Matthews
parent 97d6351202
commit 808c34498b
17 changed files with 77 additions and 70 deletions

View file

@ -125,7 +125,7 @@ impl<'a> CanvasPaintThread<'a> {
) => {
let data = imagedata.map_or_else(
|| vec![0; image_size.width as usize * image_size.height as usize * 4],
|bytes| bytes.into(),
|bytes| bytes.into_vec(),
);
self.canvas(canvas_id).draw_image(
data,