- Fixed the way that the amount of available texture units was counted