and be paranoid if context createion fials - try again with other direct
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 14 Feb 2010 15:15:28 +0000 (15:15 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 14 Feb 2010 15:15:28 +0000 (15:15 +0000)
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

index 7db2ec0..60a6105 100644 (file)
@@ -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;