gl: do not use texgen if texgen is 0