diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-07-26 13:29:40 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-08-10 14:09:46 +0200 |
commit | f5e7567f45e0d0e092d077e0c102cd7bd41ddf2a (patch) | |
tree | b6453f237aebc39efcd76175e8b0a21bf83aa0da /platform/gl | |
parent | 5f63c45b41f5207c864915dd2c42b9a484fb3592 (diff) | |
download | mupdf-f5e7567f45e0d0e092d077e0c102cd7bd41ddf2a.tar.xz |
gl: Add glutLeaveMainLoop workaround for Apple's GLUT library.
Diffstat (limited to 'platform/gl')
-rw-r--r-- | platform/gl/gl-main.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index 5b5ae2b8..b1d672e3 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -13,6 +13,13 @@ #include <unistd.h> /* for fork and exec */ #endif +#ifdef __APPLE__ +void glutLeaveMainLoop(void) +{ + exit(0); +} +#endif + fz_context *ctx = NULL; pdf_document *pdf = NULL; pdf_page *page = NULL; |