That did it, adding
[[ self openGLContext ] flushBuffer ];
To the end of getFrameForTime: did the trick.
Thanks.
On 12/04/2009, at 03:13 , Michael Ash wrote:
On Sat, Apr 11, 2009 at 2:20 AM, Brian Bruinewoud
<br...@darknova.com> wrote:
Ok. That "works". I was coming from an NSOpenGLView example where
the view
sets the context before the drawRect is sent.
Any it, doesn't crash/hang/stop now, but it doesn't draw anything,
either...
:(
Does identical code placed in drawRect: (without the context setting
stuff, of course) draw? If so, it's probably a flushing problem. Be
sure to flush your GL context before you exit.
I thought of another possible approach. Since NSOpenGLView tries to
act like a regular NSView, it may be sufficient to wrap your calls in
a lockFocus/unlockFocus pair.
Mike
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/brian%40darknova.com
This email sent to br...@darknova.com
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com