public static void clearDefaultTextureMap(Tessellator tessellator) {
tessellator.textureMap = null;
}
public static Tessellator getTessellator(Tessellator tessellator, Icon icon) {
TextureMap textureMap = (TextureMap)iconMap.get(icon);
if (textureMap == null) {
return tessellator;
} else {
Tessellator newTessellator = (Tessellator)tessellator.children.get(textureMap);
if (newTessellator == null) {
String mapName = (String)textureMapNames.get(textureMap);
if (mapName == null) {
mapName = textureMap.toString();
}
logger.fine("new Tessellator for texture map %s gl texture %d", new Object[] {mapName, Integer.valueOf(textureMap.glTextureId)});
newTessellator = new Tessellator(2097152);
copyFields(tessellator, newTessellator, true);