fix triangle count
authoralfadur
Fri, 13 Nov 2020 20:59:13 +0300
changeset 15785 f6af9d05b03c
parent 15784 84c07aa94b61
child 15786 b10bbfb2b354
fix triangle count
rust/lib-hedgewars-engine/src/render/gear.rs
--- a/rust/lib-hedgewars-engine/src/render/gear.rs	Fri Nov 13 20:54:00 2020 +0300
+++ b/rust/lib-hedgewars-engine/src/render/gear.rs	Fri Nov 13 20:59:13 2020 +0300
@@ -207,7 +207,7 @@
         let _state = PipelineState::new().with_blend();
 
         unsafe {
-            gl::DrawArrays(gl::TRIANGLES, 0, entries.len() as i32 * 2);
+            gl::DrawArrays(gl::TRIANGLES, 0, entries.len() as i32 * 6);
         }
     }
 }