Mesa (master): appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching pixel formats.
Jon TURNEY
jturney at kemper.freedesktop.org
Fri May 23 14:24:42 UTC 2014
Module: Mesa
Branch: master
Commit: 002a3a74273b81dfb226e1c3f0a8c18525ed0af4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=002a3a74273b81dfb226e1c3f0a8c18525ed0af4
Author: Jon TURNEY <jon.turney at dronecode.org.uk>
Date: Mon May 12 15:38:26 2014 +0100
appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching pixel formats.
Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
---
src/glx/apple/apple_visual.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index 238c248..c6ede51 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();
+ }
}
More information about the mesa-commit
mailing list