 			glGenBuffers(1, &attribBuffer)
 			glBindBuffer(GLenum(GL_ARRAY_BUFFER), attribBuffer)
 			glBufferData(GLenum(GL_ARRAY_BUFFER),
-									 GLsizeiptr(MemoryLayout<Vertex>.stride * attribs.count),
+									 GLsizeiptr(MemoryLayout<Float>.stride * attribs.count),
 									 attribs,
 									 GLenum(GL_STATIC_DRAW))
 		}

	}
	
	// Arrayed draw mode
	init(vertices: [Vertex], attribs: [Vertex], color c: (r: Float, g: Float, b: Float, a: Float), debugName: String) {
		mode = .Arrayed
		color = c
		name = debugName

			return
		}
		
		guard attribs.count == vertices.count * 3 || attribs.isEmpty else {
			print("Vertex and attrib arrays are of differing lengths: \(vertices.count) != \(attribs.count)")
			elementCount = 0
			return
