X-Git-Url: https://eleni.mutantstargoat.com/git/?p=libgliar;a=blobdiff_plain;f=tests%2Fglinfo%2Fglinfo.c;fp=tests%2Fglinfo%2Fglinfo.c;h=95b0148cc686e2b761ea93ba8c005a74d6e09984;hp=4dcff930fa0785b03d2bdc58e5c7b42e9bcee621;hb=00bfdd4a8d29cac26588295e8d115cd1463b2a44;hpb=39c35242f2c6d9e66ecb47d0ed241f006a848961 diff --git a/tests/glinfo/glinfo.c b/tests/glinfo/glinfo.c index 4dcff93..95b0148 100644 --- a/tests/glinfo/glinfo.c +++ b/tests/glinfo/glinfo.c @@ -21,21 +21,26 @@ Author: Eleni Maria Stea */ #include -#include +//#include #include +#include #define GET_INTEGER(x) (glGetIntegerv(x, &val), val) -#define GET_PROGRAMIV_ARB_V(x) (glGetProgramivARB(GL_VERTEX_PROGRAM_ARB, x, &val), val) -#define GET_PROGRAMIV_ARB_F(x) (glGetProgramivARB(GL_FRAGMENT_PROGRAM_ARB, x, &val), val) +#define GET_PROGRAMIV_ARB_V(x) (gl_get_progiv(GL_VERTEX_PROGRAM_ARB, x, &val), val) +#define GET_PROGRAMIV_ARB_F(x) (gl_get_progiv(GL_FRAGMENT_PROGRAM_ARB, x, &val), val) int main(int argc, char **argv) { int val; + void (*gl_get_progiv)(GLuint, GLenum, GLint*); + glutInit(&argc, argv); glutCreateWindow("glinfo"); - glewInit(); +// glewInit(); + + gl_get_progiv = glXGetProcAddress("glGetProgramivARB"); printf("vendor: %s\n", glGetString(GL_VENDOR)); printf("renderer: %s\n", glGetString(GL_RENDERER));