No texture - threading problem?


maybe this is a noob question:

I have a method "dropNewBot()" that creates the bots (currently just textured boxes) for my game. I use this method on startup, and it works fine. Now bots can be killed, and so I wanted to create a new bot every x seconds. I used a Runnable for this, calling the same method, but now the bots get no texture (no error message, geometry and Controller are OK).

Hmmmm, the textures are generated at runtime using the renderer etc, so may be this could be a threading issue? I tried this, but that doesn't work:


I think I think too complicated. It was just a missing updateRenderState()