From 98398e4a7af334c6451a4ad958ad86769734cafb Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 11 Dec 2002 07:26:49 +0000 Subject: [PATCH] Minor fix to Display.cpp --- src/native/linux/org_lwjgl_Display.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/native/linux/org_lwjgl_Display.cpp b/src/native/linux/org_lwjgl_Display.cpp index 777c629e..022f5715 100644 --- a/src/native/linux/org_lwjgl_Display.cpp +++ b/src/native/linux/org_lwjgl_Display.cpp @@ -142,7 +142,12 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_Display_nCreate(JNIEnv * env, jclass c 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... */