test/testdyngl.c
changeset 3323 8d0889509afb
parent 2735 204be4fc2726
child 5535 96594ac5fd1a
--- a/test/testdyngl.c	Sun Sep 27 23:24:58 2009 +0000
+++ b/test/testdyngl.c	Mon Sep 28 15:32:19 2009 +0000
@@ -68,6 +68,7 @@
     void (APIENTRY * glRotatef) (GLfloat, GLfloat, GLfloat, GLfloat);
     void (APIENTRY * glViewport) (GLint, GLint, GLsizei, GLsizei);
     void (APIENTRY * glFogf) (GLenum, GLfloat);
+    const GLubyte* (APIENTRY * glGetString) (GLenum);
 }
 glfuncs;
 
@@ -91,6 +92,12 @@
     f->glRotatef = get_funcaddr("glRotatef");
     f->glViewport = get_funcaddr("glViewport");
     f->glFogf = get_funcaddr("glFogf");
+    f->glGetString = get_funcaddr("glGetString");
+
+    printf("Vendor     : %s\n", f->glGetString(GL_VENDOR));
+    printf("Renderer   : %s\n", f->glGetString(GL_RENDERER));
+    printf("Version    : %s\n", f->glGetString(GL_VERSION));
+    printf("Extensions : %s\n", f->glGetString(GL_EXTENSIONS));
 }
 
 #define NB_PIXELS 1000