summary refs log tree commit diff
path: root/gpu_renderer/src/command_buffer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'gpu_renderer/src/command_buffer.rs')
-rw-r--r--gpu_renderer/src/command_buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu_renderer/src/command_buffer.rs b/gpu_renderer/src/command_buffer.rs
index 1f5b98a..b6c7005 100644
--- a/gpu_renderer/src/command_buffer.rs
+++ b/gpu_renderer/src/command_buffer.rs
@@ -89,7 +89,7 @@ impl CommandBufferBuilder {
     pub fn e_clear(&mut self, buffers: u32, color: [f32; 4], depth: f64, stencil: u32) {
         self.push_cmd(VIRGL_CCMD_CLEAR, 0, VIRGL_OBJ_CLEAR_SIZE);
         self.push(buffers);
-        for &c in color.iter() {
+        for c in &color {
             self.push(c.to_bits())
         }
         self.push_qw(depth.to_bits());