From c106ae87c1551623d65dad846ce5962f1c66185e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 25 Nov 2002 20:35:01 +0000 Subject: [PATCH] Dump extension info with debug library --- src/native/linux/org_lwjgl_opengl_BaseGL.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/native/linux/org_lwjgl_opengl_BaseGL.cpp b/src/native/linux/org_lwjgl_opengl_BaseGL.cpp index 8e57fe32..c72b1b28 100644 --- a/src/native/linux/org_lwjgl_opengl_BaseGL.cpp +++ b/src/native/linux/org_lwjgl_opengl_BaseGL.cpp @@ -85,6 +85,10 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_BaseGL_nCreate #endif return JNI_FALSE; } +#ifdef _DEBUG + const GLubyte * extensions = glGetString(GL_EXTENSIONS); + printf("Supported extensions: %s\n", extensions); +#endif return JNI_TRUE; }