// setCounts ensures the draw frame has the most recent number of // verticies and faces. The objects may have been updated after the // draw object was created by the engine. func (m *machine) setCounts(d render.Draw) { if cnts, ok := m.counts[d.Vao()]; ok { d.SetCounts(cnts.faces, cnts.verticies) } else { log.Printf("machine.setCounts: must have mesh counts %d", d.Vao()) } }