I have a strange problem that I can't nail down. I'm trying to set up
an OpenGL context which is shared by Quartz, mainly to be able to use
Quartz font drawing with my OpenGL program, but also to maybe draw
Quartz Composer backgrounds.
The problem is that as soon as I create a CGGLContext, the OpenGL
colors are all wrong. I don't even have to actually draw anything
using Quartz, the mere CGGLContextCreate() call is sufficient. I'm
attaching an example that draws a red Quad; if compiled without the -
DDEMO flag, it works perfectly, if compiled with -DDEMO, the Quad is
gone. Experimentation shows that it's not *not drawn*, but just not
drawn in the correct color.
In case this is a driver-specific problem: I'm on a 15" AlBook,
Radeon 9600.
Has anyone encountered this problem before and can give me some
pointers?
int main(int argc, const char* argv[])
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
[NSApplication sharedApplication];
[NSApp setDelegate: [MyController new]];
int retval = NSApplicationMain(argc, argv);
[pool release];
return retval;
}
[snip] _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden