fix texgen state initialization