From 8ccacd388730c07c5a7ea18b543c95eae9b8436b Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 14 Feb 2010 15:15:28 +0000 Subject: [PATCH] and be paranoid if context createion fials - try again with other direct options git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@46168 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_x11/evas_x_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/engines/gl_x11/evas_x_main.c b/src/modules/engines/gl_x11/evas_x_main.c index 7db2ec0..60a6105 100644 --- a/src/modules/engines/gl_x11/evas_x_main.c +++ b/src/modules/engines/gl_x11/evas_x_main.c @@ -144,6 +144,10 @@ eng_window_new(Display *disp, context = glXCreateContext(disp, gw->visualinfo, NULL, GL_FALSE); else context = glXCreateContext(disp, gw->visualinfo, NULL, GL_TRUE); + if (!context) + context = glXCreateContext(disp, gw->visualinfo, NULL, GL_TRUE); + if (!context) + context = glXCreateContext(disp, gw->visualinfo, NULL, GL_FALSE); } gw->context = context; -- 2.7.4