> What's the best way to "fallback" when a GPU doesn't have multi sample > antialiasing available? > Is there a reliable way to do a check for MSAA or give some conditional logic > that won't wind up with an app crashing?
best way to do fallback is to use a non-MSAA pixel format. As for a reliable way to check (I haven't actually tried this particular approach to my knowledge, but I've dealt with this exact same problem before, I just forget how): Ask for it (CGLChoosePixelFormat), and see if npix (the last argument, returned by reference) is 0 (meaning no renderers support that format) - that's a failure. Or you can see if CGLCreateContext gives you a NULL context (meaning it failed). Check for non-zero error codes returned from CGLChoosePixelFormat and CGLCreateContext. The software renderer doesn't support MSAA, only Supersampling (if I recall correctly), so it shouldn't muddy your capabilities check. -- Christopher Wright christopher_wri...@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com