diff --git a/wgpu-hal/src/gles/command.rs b/wgpu-hal/src/gles/command.rs index 7c1eb1c841..8076a13aeb 100644 --- a/wgpu-hal/src/gles/command.rs +++ b/wgpu-hal/src/gles/command.rs @@ -620,6 +620,11 @@ impl crate::CommandEncoder for super::CommandEncoder { self.state.dirty_vbuf_mask = 0; self.state.active_first_instance = 0; self.state.color_targets.clear(); + for index in 0..self.state.vertex_attributes.len() { + self.cmd_buffer + .commands + .push(C::UnsetVertexAttribute(index as u32)); + } self.state.vertex_attributes.clear(); self.state.primitive = super::PrimitiveState::default(); }