Permalink
Browse files

Remove a panic due to missing video support

  • Loading branch information...
nox committed Sep 14, 2018
1 parent 70639be commit e699a80f15a28f1f1f48fe7672c96dfccfec416b
Showing with 4 additions and 2 deletions.
  1. +4 −2 components/script/dom/webglrenderingcontext.rs
@@ -540,8 +540,10 @@ impl WebGLRenderingContext {
return Err(());
}
},
ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::HTMLVideoElement(_rooted_video)
=> unimplemented!(),
ImageDataOrHTMLImageElementOrHTMLCanvasElementOrHTMLVideoElement::HTMLVideoElement(_) => {
// TODO: https://github.com/servo/servo/issues/6711
return Err(());
}
};
return Ok((pixels, size, premultiplied));

0 comments on commit e699a80

Please sign in to comment.