aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs
diff options
context:
space:
mode:
authorchansuke <chansuke@georepublic.de>2018-09-18 23:24:15 +0900
committerJosh Matthews <josh@joshmatthews.net>2018-09-19 17:40:47 -0400
commitc37a345dc9f4dda6ea29c42f96f6c7201c42cbac (patch)
tree1f05b49bac02318455a59d5b143c186fd872bdb9 /components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs
parent2ca7a134736bb4759ff209c1bc0b6dc3cc1984c9 (diff)
downloadservo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.tar.gz
servo-c37a345dc9f4dda6ea29c42f96f6c7201c42cbac.zip
Format script component
Diffstat (limited to 'components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs')
-rw-r--r--components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs b/components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs
index 7ce5cb3533a..264dd8fe41d 100644
--- a/components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs
+++ b/components/script/dom/webgl_extensions/ext/oestexturefloatlinear.rs
@@ -25,9 +25,11 @@ impl OESTextureFloatLinear {
impl WebGLExtension for OESTextureFloatLinear {
type Extension = OESTextureFloatLinear;
fn new(ctx: &WebGLRenderingContext) -> DomRoot<OESTextureFloatLinear> {
- reflect_dom_object(Box::new(OESTextureFloatLinear::new_inherited()),
- &*ctx.global(),
- OESTextureFloatLinearBinding::Wrap)
+ reflect_dom_object(
+ Box::new(OESTextureFloatLinear::new_inherited()),
+ &*ctx.global(),
+ OESTextureFloatLinearBinding::Wrap,
+ )
}
fn spec() -> WebGLExtensionSpec {
@@ -35,8 +37,7 @@ impl WebGLExtension for OESTextureFloatLinear {
}
fn is_supported(ext: &WebGLExtensions) -> bool {
- ext.supports_any_gl_extension(&["GL_OES_texture_float_linear",
- "GL_ARB_texture_float"])
+ ext.supports_any_gl_extension(&["GL_OES_texture_float_linear", "GL_ARB_texture_float"])
}
fn enable(ext: &WebGLExtensions) {