NSViews and NSOpenGLContext, "invalid drawable" error
NSViews and NSOpenGLContext, "invalid drawable" error
- Subject: NSViews and NSOpenGLContext, "invalid drawable" error
- From: "Sean McBride" <email@hidden>
- Date: Tue, 13 Dec 2005 15:59:35 -0500
- Organization: Rogue Research
Hi all,
I have a custom NSView subclass that uses OpenGL (it's not an
NSOpenGLView subclass though). In my NSDocument's
windowControllerDidLoadNib: method I do some initialisation which ends
up calling my NSOpenGLContext's setView: method. However, at that
point, I see "invalid drawable" printed in the console.
As best as I can figure, this is happening because the NSWindow (and
hence my view) are not visible onscreen yet, and the system doesn't like that.
When is a safe time to call NSOpenGLContext's setView:? I guess
windowControllerDidLoadNib: is too early.
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden