preloading stuff with lwjgl/ogl

In my game i have got a thread that runs to preload models and textures while a small animation is displayed on screen, the trouble is that i get a null pointer whenever the resourceloader tries to use ogl(to make display list / texture), i am guessing this is something to do with the main loop rendering also concurrently and them not being synchronized on ogl but how can i synchronize on ogl? or is this usually done another way?

ty :slight_smile:

You need to have a shared gl context. I did some messing around with pre loading a while back. Here is what I found out.