diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-04-04 12:47:06 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-04-04 13:12:41 +0200 |
commit | 3c56d2f5a70cb95f238b689310f0b172d11c486c (patch) | |
tree | e58d36b82e02d64c4c075644243bebc78fb3cfe7 /components/script/dom/webglrenderingcontext.rs | |
parent | e7f716de12688ed2306c51b6479a67a6b057975c (diff) | |
download | servo-3c56d2f5a70cb95f238b689310f0b172d11c486c.tar.gz servo-3c56d2f5a70cb95f238b689310f0b172d11c486c.zip |
Move handle_potential_webgl_error to the dom macros module
Diffstat (limited to 'components/script/dom/webglrenderingcontext.rs')
-rw-r--r-- | components/script/dom/webglrenderingcontext.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/components/script/dom/webglrenderingcontext.rs b/components/script/dom/webglrenderingcontext.rs index 1181231e27a..31dcc7b647f 100644 --- a/components/script/dom/webglrenderingcontext.rs +++ b/components/script/dom/webglrenderingcontext.rs @@ -68,21 +68,6 @@ use webrender_api; type ImagePixelResult = Result<(Vec<u8>, Size2D<i32>, bool), ()>; pub const MAX_UNIFORM_AND_ATTRIBUTE_LEN: usize = 256; -macro_rules! handle_potential_webgl_error { - ($context:ident, $call:expr, $return_on_error:expr) => { - match $call { - Ok(ret) => ret, - Err(error) => { - $context.webgl_error(error); - $return_on_error - } - } - }; - ($context:ident, $call:expr) => { - handle_potential_webgl_error!($context, $call, ()); - }; -} - // From the GLES 2.0.25 spec, page 85: // // "If a texture that is currently bound to one of the targets |