/* */
/* 121 */ if ((imageComponent.getWidth() == width) && (imageComponent.getHeight() == height))
/* */ {
/* 123 */ tex.setImage(0, imageComponent);
/* */ } else {
/* 125 */ Texture2D newTex = setupTexture(imageComponent);
/* */
/* 129 */ newTex.setBoundaryModeS(tex.getBoundaryModeS());
/* 130 */ newTex.setBoundaryModeT(tex.getBoundaryModeT());
/* 131 */ newTex.setMinFilter(tex.getMinFilter());
/* 132 */ newTex.setMagFilter(tex.getMagFilter());
/* 133 */ newTex.setEnable(tex.getEnable());
/* 134 */ newTex.setAnisotropicFilterMode(tex.getAnisotropicFilterMode());
/* 135 */ newTex.setAnisotropicFilterDegree(tex.getAnisotropicFilterDegree());
/* 136 */ int pcount = tex.getFilter4FuncPointsCount();
/* 137 */ if (pcount > 0) {
/* 138 */ float[] weights = new float[pcount];
/* 139 */ tex.getFilter4Func(weights);
/* 140 */ newTex.setFilter4Func(weights);
/* */ }
/* 142 */ Color4f c = new Color4f();
/* 143 */ tex.getBoundaryColor(c);
/* 144 */ newTex.setBoundaryColor(c);
/* 145 */ newTex.setUserData(tex.getUserData());
/* 146 */ getAppearance().setTexture(newTex);
/* */ }
/* */ }