Re: copyCGLContextForPixelFormat
Re: copyCGLContextForPixelFormat
- Subject: Re: copyCGLContextForPixelFormat
- From: John Harper <email@hidden>
- Date: Sun, 03 Feb 2008 09:37:08 -0800
On Feb 2, 2008, at 7:47 PM, Richard Somers wrote:
I thought I would try layer-backed views to accomplish this
hierarchy. The first problem I ran into was the opengl layer-backed
context. I start with a double-buffered NSOpenGLView subclass for
the primary view. Then when I switch the view to layer-backed and
the new context is not double-buffered. I have observed this loss of
opengl double-buffering in my own code and also in Apple's
LayerBackedOpenGLView sample code.
So the next thing I thought I would try is to forgo the automatic
layer-backed context creation and try to create a layer-backed
double-buffered context manually.
Any thoughts?
Not really, it sounds like what you're describing should work. If you
use CAOpenGLLayer (either directly or via NSView) you don't need to
use double buffering, that is already taken care of (via a different
mechanism)
John
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden