diff options
Diffstat (limited to '')
-rw-r--r-- | wgpu/src/triangle.rs | 4 | ||||
-rw-r--r-- | wgpu/src/triangle/solid.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index a21e0fac..2af35588 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -134,8 +134,8 @@ impl Pipeline { &mesh.buffers.indices, ); - vertex_offset = vertex_offset + new_vertex_offset; - index_offset = index_offset + new_index_offset; + vertex_offset += new_vertex_offset; + index_offset += new_index_offset; self.index_strides.push(mesh.buffers.indices.len() as u32); diff --git a/wgpu/src/triangle/solid.rs b/wgpu/src/triangle/solid.rs index 75455310..9d85ff7b 100644 --- a/wgpu/src/triangle/solid.rs +++ b/wgpu/src/triangle/solid.rs @@ -57,7 +57,7 @@ impl Pipeline { }); let bind_group = - Pipeline::bind_group(device, &buffer.raw(), &bind_group_layout); + Pipeline::bind_group(device, buffer.raw(), &bind_group_layout); let layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { |