Loading textures in another Thread using detachNewThreadSelector
===

I am loading 3D model in my app. since models can be big I want to load it in another thread. I called detachNewThreadSelector to spawn new thread and simply moved model loading call there. Model loads but it has no textures. When I check in debugger I see that glGenTextures call does not create new name/Id (it leaves valiable at 0).

If I move my function call to main thread all works fine.