aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs')
-rw-r--r--components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs b/components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs
index 7c93c8c6567..030146b8d3a 100644
--- a/components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs
+++ b/components/script/dom/webgl_extensions/ext/angleinstancedarrays.rs
@@ -64,16 +64,11 @@ impl WebGLExtension for ANGLEInstancedArrays {
impl ANGLEInstancedArraysMethods for ANGLEInstancedArrays {
// https://www.khronos.org/registry/webgl/extensions/ANGLE_instanced_arrays/
- fn DrawArraysInstancedANGLE(
- &self,
- mode: u32,
- first: i32,
- count: i32,
- primcount: i32,
- ) {
+ fn DrawArraysInstancedANGLE(&self, mode: u32, first: i32, count: i32, primcount: i32) {
handle_potential_webgl_error!(
self.ctx,
- self.ctx.draw_arrays_instanced(mode, first, count, primcount)
+ self.ctx
+ .draw_arrays_instanced(mode, first, count, primcount)
)
}
@@ -88,7 +83,8 @@ impl ANGLEInstancedArraysMethods for ANGLEInstancedArrays {
) {
handle_potential_webgl_error!(
self.ctx,
- self.ctx.draw_elements_instanced(mode, count, type_, offset, primcount)
+ self.ctx
+ .draw_elements_instanced(mode, count, type_, offset, primcount)
)
}