fix gl functions get
Merge branch 'master' into stable