[PyOpenGL-Devel] Using PyOpenGL in threaded programs
Brought to you by:
mcfletch
From: Miguel P. <wis...@gm...> - 2012-03-12 15:26:20
|
Any news on bug 2965754? ( http://sourceforge.net/tracker/?func=detail&aid=2965754&group_id=5988&atid=105988) I'm writing an image viewer that was supposed to preload images in the background. However, it'll crash if I attempt to load images in one thread and show them in another thread once it has been successfully loaded. I verified I can use any number of threads, and PyOpenGL can be used from any thread, but it doesn't seem to be able to be called from different threads. In other words, the thread that loads textures must be the thread that uses them, and the thread that unloads them. There's an example of what I'm saying attached to said bug. Am I doing something wrong? Thanks |