Moved print of extensions to debug version

This commit is contained in:
Elias Naur 2002-12-12 20:06:15 +00:00
parent ede753c419
commit 38438f6716
1 changed files with 2 additions and 1 deletions

View File

@ -125,13 +125,14 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_BaseGL_nCreate
return JNI_FALSE;
}
#ifdef _DEBUG
char * p = (char *) glGetString(GL_EXTENSIONS);
if (NULL == p) {
printf("NO extensions available\n");
} else {
printf("Available extensions:\n%s\n", p);
}
#endif
return JNI_TRUE;
}