Update of /cvsroot/java-game-lib/LWJGL/src/native/linux
In directory sc8-pr-cvs1:/tmp/cvs-serv26193/linux
Modified Files:
org_lwjgl_Display.cpp
Log Message:
Minor fix to Display.cpp
Index: org_lwjgl_Display.cpp
CVS Browser:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Display.cpp
===================================================================
RCS file: /cvsroot/java-game-lib/LWJGL/src/native/linux/org_lwjgl_Display.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- org_lwjgl_Display.cpp 11 Dec 2002 07:16:31 -0000 1.7
+++ org_lwjgl_Display.cpp 11 Dec 2002 07:26:49 -0000 1.8
@@ -142,7 +142,12 @@
return JNI_FALSE;
}
root_win = RootWindow(disp, screen);
- extgl_Open();
+ if (extgl_Open() != 0) {
+#ifdef _DEBUG
+ printf("Could not load gl libs\n");
+#endif
+ return JNI_FALSE;
+ }
vis_info = glXChooseVisual(disp, screen, attriblist);
/* might be a better way to handle not being able to set GLX_ALPHA_SIZE... */
|