fix gl function get