Texture loading in GLEventListener.display?

hi all,

what do i have to do to create textures inside GLEventListener.display method?
i tried with TextureIO.newTexture(File, …) and TextureIO.newTexture(TextureData, …)
both failed. (see http://www.java-gaming.org/index.php/topic,19479.0.html)

is it generally possible to load textures inside the display method?

note, that there is only a problem in the first rendered frame, which is the frame
where the textures are lazily created, and when using multitexturing.

thanks,
mike

Can you post the code where you did the texture loading in the display() method. It may have been that the texture bindings were modified by TextureIO and weren’t correctly reset before actually rendering.