[GEM-cvs] Gem/src/Base GemWinCreateXWin.cpp,1.10,1.11
Brought to you by:
zmoelnig
From: IOhannes m z. <zmo...@us...> - 2005-02-07 13:42:27
|
Update of /cvsroot/pd-gem/Gem/src/Base In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17637 Modified Files: GemWinCreateXWin.cpp Log Message: catching errors that might get thrown by glx Index: GemWinCreateXWin.cpp =================================================================== RCS file: /cvsroot/pd-gem/Gem/src/Base/GemWinCreateXWin.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** GemWinCreateXWin.cpp 7 Apr 2004 14:47:57 -0000 1.10 --- GemWinCreateXWin.cpp 7 Feb 2005 13:42:16 -0000 1.11 *************** *** 123,127 **** } // create the rendering context ! info.context = glXCreateContext(info.dpy, vi, hints.shared, GL_TRUE); if (info.context == NULL) { error("GEM: Could not create rendering context"); --- 123,131 ---- } // create the rendering context ! try { ! info.context = glXCreateContext(info.dpy, vi, hints.shared, GL_TRUE); ! } catch(void*e){ ! info.context=NULL; ! } if (info.context == NULL) { error("GEM: Could not create rendering context"); *************** *** 195,199 **** hints.title, "gem", None, 0, 0, NULL); ! glXMakeCurrent(info.dpy, info.win, info.context); if (!hints.actuallyDisplay) return(1); --- 199,209 ---- hints.title, "gem", None, 0, 0, NULL); ! try{ ! glXMakeCurrent(info.dpy, info.win, info.context); ! }catch(void*e){ ! error("GEM: Could not make glX-context current"); ! destroyGemWindow(info); ! return(0); ! } if (!hints.actuallyDisplay) return(1); |