docs: public void addTexture(int unit, Texture texture) {
          if (texture == null) {
              throw new IllegalStateException("Texture cannot be null");
          }
          texture.checkCreated();
          if (textures == null) {
              textures = new TIntObjectHashMap<>();
          }
          textures.put(unit, texture);
      }