fix gl function get
Merge branch 'master' into stable