fix gl function get
fix gl functions get
merge with master