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 