some bugfixes in glTexGen