and be paranoid if context createion fials - try again with other direct

options



SVN revision: 46168
This commit is contained in:
Carsten Haitzler 2010-02-14 15:15:28 +00:00
parent cee4d504cf
commit c2431a688d
1 changed files with 4 additions and 0 deletions

View 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;