On 17 Jan 2010, at 19:59, vade wrote:
> Very quickly. Are you locking your contexts before rendering to them? Both qc
> gl context and cgbitmaps? Webkit uses gl/core animation to render things, so
> you may be drawing to or from the " wrong context" sobriety speak. Try
> throwing some cgllockcontexts() around? No idea if that's it though!
Thanks for the advice... I tried locking, and also copying then restoring
GL_ALL_ATTRIB_BITS too, but that's not changed the behaviour... also saving and
restoring the graphics state (via both NSGraphicsContext and
CGContextSaveGState) but I'm not seeing any change :-(
[NSGraphicsContext saveGraphicsState];
CGLContextObj tmp;
CGLCopyContext(cgl_ctx, tmp, GL_ALL_ATTRIB_BITS);
// Perform WebKit heavy stuff...
CGLCopyContext(tmp, cgl_ctx, GL_ALL_ATTRIB_BITS);
[NSGraphicsContext restoreGraphicsState];
Is there any specific technique for locking CGContextRef?
A.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [email protected]