OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a459a0
)
appleglx: Improve error reporting if CGLChoosePixelFormat() didn't find any matching...
author
Jon TURNEY
<jon.turney@dronecode.org.uk>
Mon, 12 May 2014 14:38:26 +0000
(15:38 +0100)
committer
Jon TURNEY
<jon.turney@dronecode.org.uk>
Fri, 23 May 2014 14:24:09 +0000
(15:24 +0100)
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
src/glx/apple/apple_visual.c
patch
|
blob
|
history
diff --git
a/src/glx/apple/apple_visual.c
b/src/glx/apple/apple_visual.c
index
238c248
..
c6ede51
100644
(file)
--- 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();
+ }
}