Prepares for drawing a set of lines with the specified matrix. It flushes all other contexts, and the set matrix.