 			return
 		}
 		
-		guard attribs.count == vertices.count || attribs.isEmpty else {
+		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

													GLenum(GL_FLOAT), GLboolean(GL_FALSE),
													GLsizei(MemoryLayout<Vertex>.stride), BUFFER_OFFSET(0))
		glBindBuffer(GLenum(GL_ARRAY_BUFFER), primitive.attribBuffer)
		glVertexAttribPointer(RenderPrimitive.Attribs.barycentric.rawValue, 2,
													GLenum(GL_FLOAT), GLboolean(GL_FALSE),
													GLsizei(MemoryLayout<Vertex>.stride), BUFFER_OFFSET(0))
		glDrawArrays(GLenum(GL_TRIANGLES),
								 0,
								 primitive.elementCount)

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