aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2014-05-12 15:38:26 +0100
committerJon TURNEY <[email protected]>2014-05-23 15:24:09 +0100
commit002a3a74273b81dfb226e1c3f0a8c18525ed0af4 (patch)
tree78607398ec656479da75c452dcbee17a9fee8ca6 /src/glx
parent5a459a036e33683410bab4df431ed553bd0eeb66 (diff)
appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching pixel formats.
Signed-off-by: Jon TURNEY <[email protected]> Reviewed-by: Jeremy Huddleston Sequoia <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/apple/apple_visual.c5
1 files changed, 5 insertions, 0 deletions
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();
+ }
}