Fixes to glTexCoordPointer, plus other misc fixes