Latest community release issue

Code in this format is now aborting, is there a reason…this worked previously

static public BufferedImage parchment = ((ImageComponent2D) TextureLoader.tf
.getAlphaTexture(“images/parchment2.gif”).getImage(0)).getImage();

Caused by: java.lang.IllegalStateException: ImageComponent2D is not by reference
at com.xith3d.scenegraph.ImageComponent2D.getImage(ImageComponent2D.java:206)

Could be related to this change: http://192.18.37.44/forums/index.php?topic=9771.0 ?

Will.

If you use loadTexture(name, “RGB”, false, Texture.BASE_LEVEL_LINEAR, Texture.MULTI_LEVEL_POINT, Texture.WRAP, true) then it will create the Texture as a byRef=true texture. This will hold onto the original data objects so that the texture may be updated later on.

This will require more memory and should only be used for dynamic textures. If you need to load an image just use ImageIO.read(…)