From 2d2c88a704455f5dc3e14b557bd52eefcec14d2e Mon Sep 17 00:00:00 2001 From: Micha White Date: Sun, 18 Sep 2022 21:18:23 -0400 Subject: Some optimization --- src/vertex.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/vertex.rs') diff --git a/src/vertex.rs b/src/vertex.rs index 6514fd3..a24a601 100644 --- a/src/vertex.rs +++ b/src/vertex.rs @@ -3,11 +3,13 @@ use std::mem::size_of; use bytemuck::{Pod, Zeroable}; /// The vertices needed to form a square -pub const SQUARE: [Vertex; 4] = [ +pub const SQUARE: [Vertex; 6] = [ Vertex::new(-0.5, -0.5), Vertex::new(0.5, -0.5), Vertex::new(-0.5, 0.5), Vertex::new(0.5, 0.5), + Vertex::new(-0.5, 0.5), + Vertex::new(0.5, -0.5), ]; #[repr(C)] -- cgit v1.2.3