Permalink
Browse files

Remove a panic due to missing video support

  • Loading branch information...
nox committed Sep 14, 2018
1 parent fef04c6 commit 70a0174b0abef796a1d1500fa7a8b7dc395719e0
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 70a0174

Please sign in to comment.