Skip to content

Commit

Permalink
Remove a panic due to missing video support
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Sep 14, 2018
1 parent fef04c6 commit 70a0174
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/script/dom/webglrenderingcontext.rs
Expand Up @@ -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));
Expand Down

0 comments on commit 70a0174

Please sign in to comment.