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

move gl's constant variable to cc