My software "adopts" qtz files as plugins using QCRenderer. At startup, I must create an NSOpenGLContext so that I can get information about the plugins, i.e., the parameter names, etc.

But I'm receiving a handful of bug reports where the creation of the pixel format for the context fails -- this is when calling NSOpenGLPixelFormat. Problem is, I can't recreate this bug on any computer in my possession.

(This happens only on Lion; I have no bug reports for Snow Leopard on this.)

The code is pretty simple, and taken from Apple examples:

static NSOpenGLPixelFormatAttribute sOpenGLAttributes[] = {
NSOpenGLPFANoRecovery,
NSOpenGLPFAAccelerated,
NSOpenGLPFADoubleBuffer,
NSOpenGLPFAFullScreen,
NSOpenGLPFAScreenMask, (NSOpenGLPixelFormatAttribute) CGDisplayIDToOpenGLDisplayMask(kCGDirectMainDisplay),
NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute) 32,
(NSOpenGLPixelFormatAttribute) 0
};

mQCFormat = [[NSOpenGLPixelFormat alloc] initWithAttributes:sOpenGLAttributes];

Can anyone tell me why this might be failing? Obviously, I've got a "no recovery" in there so if the system can't create the format, I got nuthin'.

Is NSOpenGLPFAFullScreen the problem?

Thanks in advance for any insights.

Best Wishes,
Mark
--
=======================================================================
 Mark Coniglio             |  [email protected]
 TroikaTronix              |  http://www.troikatronix.com/
 Isadora®                  |  http://www.troikatronix.com/isadora.html
                           |  (interactive media processing environment)
=======================================================================
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to