Set gl_driver and vid_ref as protected