Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OpenGL & threads





On Wed, May 7, 2008 at 3:03 PM, Fred Leboucher <email@hidden> wrote:
Would anyone now what is causing this ? Does it occur because I'm not calling an aglSetCurrentContext() from my 2nd thread (which leads to other problems such as dynamic vertex buffers not being drawn...) ?

One OpenGL context can only be current in one thread at any given time. You have to make another (or none) context current in the 1st thread before you make it current in the 2nd. In general I suggest using one, potentially shared, context per thread. See also: <http://www.equalizergraphics.com/documentation/parallelOpenGLFAQ.html>.


HTH,

Stefan.

--
http://www.eyescale.ch
http://www.equalizergraphics.com
http://www.linkedin.com/in/eilemann
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/email@hidden

This email sent to email@hidden

References: 
 >OpenGL & threads (From: Fred Leboucher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.