DisplaySystem.getDisplaySystem().getRenderer().createTextureState(); textureUnits = TextureState.getNumberOfUnits(); }
DisplaySystem displaySystem = DisplaySystem.getDisplaySystem(); if ( displaySystem != null ) { displaySystem.getRenderer().createTextureState(); textureUnits = TextureState.getNumberOfUnits(); } else { textureUnits = 1; } }
	public void reconstruct(FloatBuffer vertices, FloatBuffer normals,			FloatBuffer colors, FloatBuffer textureCoords) {		int textureUnits = TextureState.getNumberOfUnits();		if (textureUnits == -1) {		    DisplaySystem.getDisplaySystem().getRenderer().createTextureState();		    textureUnits = TextureState.getNumberOfUnits();		}		texBuf = new FloatBuffer[textureUnits];		if (vertices == null)		    vertQuantity = 0;		else		    vertQuantity = vertices.capacity() / 3;		vertBuf = vertices;		normBuf = normals;		colorBuf = colors;		texBuf[0] = textureCoords;	}