Revert the use of our internal id counting system instead of glGenTextures. We are now only using it for calculating the texture units. Renamed variables.