Issue #4277: move gl's constant variable to cc

Move gl's constant variable to cc