diff options
Diffstat (limited to 'components/script/dom/vertexarrayobject.rs')
-rw-r--r-- | components/script/dom/vertexarrayobject.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/vertexarrayobject.rs b/components/script/dom/vertexarrayobject.rs index 695911b7855..b205df7358e 100644 --- a/components/script/dom/vertexarrayobject.rs +++ b/components/script/dom/vertexarrayobject.rs @@ -116,10 +116,7 @@ impl VertexArrayObject { return Err(WebGLError::InvalidValue); } - let is_webgl2 = match self.context.webgl_version() { - WebGLVersion::WebGL2 => true, - _ => false, - }; + let is_webgl2 = matches!(self.context.webgl_version(), WebGLVersion::WebGL2); let bytes_per_component: i32 = match type_ { constants::BYTE | constants::UNSIGNED_BYTE => 1, |