From: Jon TURNEY Date: Mon, 12 May 2014 14:38:26 +0000 (+0100) Subject: appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=002a3a74273b81dfb226e1c3f0a8c18525ed0af4;p=mesa.git appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching pixel formats. Signed-off-by: Jon TURNEY Reviewed-by: Jeremy Huddleston Sequoia --- diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c index 238c24881c9..c6ede51e489 100644 --- a/src/glx/apple/apple_visual.c +++ b/src/glx/apple/apple_visual.c @@ -167,4 +167,9 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m fprintf(stderr, "error: %s\n", apple_cgl.error_string(error)); abort(); } + + if (!*pfobj) { + fprintf(stderr, "No matching pixelformats found, perhaps try using LIBGL_ALLOW_SOFTWARE\n"); + abort(); + } }