| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| Hi, I am encountering crashes when using OpenGL from multiple threads. I read guidelines on the documentations by Apple regarding OpenGL and threads, which says one of the solutions is : When you use an I guess that can be applied to other forms of OpenGL on Mac OS X (i.e. AGL) and not only Cocoa. And that's exactly what I'm doing. My application crashes at the first gl* call (in this case, glGenTextures) that is not called by the main thread that created the context. The crash, when it occurs, is due to an EXC_BAD_ACCESS inside the GL method. At this point, I checked that no other thread was running GL code, and noticed that my main thread was blocked by my mutex, while other threads do not touch the GL. So everything is locked tight and there is no two threads accessing GL at the same time. Still, it crashes... 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...) ? Thanks for any help... Fred |
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.