From 0dc9cdbf9bace179e75ffc2cc874ab5b1c5f2cc8 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 31 May 2007 14:19:00 +0000 Subject: on __APPLE__, open X11.app if creating the window fails the first time svn path=/trunk/externals/pdp/; revision=7729 --- modules/image_io/pdp_glx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/image_io/pdp_glx.c b/modules/image_io/pdp_glx.c index d454de9..81ec2d9 100644 --- a/modules/image_io/pdp_glx.c +++ b/modules/image_io/pdp_glx.c @@ -247,6 +247,9 @@ static int pdp_glx_try_autocreate(t_pdp_glx *x) post("pdp_glx: autocreate window"); pdp_glx_create(x); if (!(x->x_initialized)){ +#ifdef __APPLE__ + system("/usr/bin/open /Applications/Utilities/X11.app &"); +#endif x->x_autocreate--; if (!x->x_autocreate){ post ("pdp_glx: autocreate failed %d times: disabled", PDP_OGL_AUTOCREATE_RETRY); -- cgit v1.2.1