passed to gl