Currently I am using TexLib to create textures and such. It is working beautifully. If I call all my code synchronously from the same thread, everything works great but takes forever to load. So instead I am loading only what needs to be loaded for an initial displaying, then create 2 threads that run in the background and parse things from resource files while the main thread starts drawing the GUI.
What I am running into is that once the GUI is being drawn, any texture I try to load comes back with an index of '0', and just doesnt work. If I use the same code but call the loading functions directly from the main thread, it all works gloriously.
So is there something prohibiting loading textures to a context while that context is "active" (I dont know the real name for it if one exists)?
I saw one brief thread late last year about multithreading loading, and someone suggested using a second context by creating a new nativewindow and everything in the background. This seems a little convoluted to me, are there really no other ways?
I think the DLL is version 0.9.9.4, but I have made some changes to both the main project files and TexLib, and I am not sure if I changed my local version number or not...