Using PyOpenGL in threaded programs

Miguel PĂ©rez <[email protected]> Mon, 12 Mar 2012 16:26:10 +0100
Newsgroups gmane.comp.python.opengl.devel
Message-ID <CAAE3NSGut77==hNQk5ajTb2=P4dQW+01uKRzyFv9CkLDp6DC_Q@mail.gmail.com>
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

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel