From c2431a688d7539d7b32c96ebeaedf98c6f979215 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 14 Feb 2010 15:15:28 +0000 Subject: [PATCH] and be paranoid if context createion fials - try again with other direct options SVN revision: 46168 --- legacy/evas/src/modules/engines/gl_x11/evas_x_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c b/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c index 7db2ec0a22..60a610553b 100644 --- a/legacy/evas/src/modules/engines/gl_x11/evas_x_main.c +++ b/legacy/evas/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;