(Glide64/Glitch64) Make setPattern function somewhat more optimal.
TODO/FIXME - move this off CPU, no more LUT texture and onto shader