Custom UI parameter using NSOpenGLView flickers on resize