R: [Plib-users] Threads and textures
Brought to you by:
sjbaker
From: Paolo L. <p.l...@ci...> - 2006-01-12 11:10:00
|
I'm not sure this can help, but the wglShareLists function allows to = share texture and display lists between two OpenGL contexes. =20 So as last resource you could create a second, windowless context in the thread and sharing texture with the main one. =20 Greetings - =20 Paolo Leoncini =20 -----Messaggio originale----- Da: pli...@li... [mailto:pli...@li...] Per conto di Tinoshi Kitazawa Inviato: mercoled=EC 11 gennaio 2006 21.14 A: PLIB USERS Oggetto: [Plib-users] Threads and textures Hi, =20 I think I have got a problem related with OpenGL context and threads... = I'm loading my database in a secondary thread, and textures are not = loaded!!! if i print(stdout," ",3) the Leaf i load, textures handles are always set = to 0, while geometry (vertex) are correctly drawn. If I load the database in = the main thread, textures are loaded!=20 I tryed to pass to the thread the ssgGetCurrentContext() and to makeCurrent() just inside the thread function, but I doesn't work... = What can I do??? =20 Thanks!!! =20 P.S. OS is WindowsXP, I use Visual Studio 6.0=20 |