GRIM: Allow changing opengl modes on the fly