reorder less than comparison to match with descriptor iterator
factor out createPatchArray function into drawContext.
cleanup glDrawContext