Skip navigation.
 
mlRe: copyCGLContextForPixelFormat
FROM : John Harper
DATE : Sun Feb 03 18:37:08 2008

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

Related mailsAuthorDate
mlcopyCGLContextForPixelFormat Richard Somers Feb 2, 23:25
mlRe: copyCGLContextForPixelFormat John Harper Feb 3, 00:17
mlRe: copyCGLContextForPixelFormat Richard Somers Feb 3, 04:47
mlRe: copyCGLContextForPixelFormat John Harper Feb 3, 18:37
mlRe: copyCGLContextForPixelFormat Richard Somers Feb 4, 14:24
mlRe: copyCGLContextForPixelFormat John Harper Feb 4, 18:53
mlRe: copyCGLContextForPixelFormat Richard Somers Feb 4, 23:11