diff options
author | Ian Romanick <[email protected]> | 2005-04-05 20:43:06 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-04-05 20:43:06 +0000 |
commit | 29c909f81ceae4a0356718d6be0a14562c98c019 (patch) | |
tree | bfdf672d7c89da732b9ee1d3061c03472e58fbc5 /progs/xdemos/glxgears_fbconfig.c | |
parent | 5234d17514d88ad4e32bbe256aed31583df92c9b (diff) |
Make glxgears_fbconfig compile and respect the DISPLAY setting. Add it
to the Makefile as well.
Diffstat (limited to 'progs/xdemos/glxgears_fbconfig.c')
-rw-r--r-- | progs/xdemos/glxgears_fbconfig.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/progs/xdemos/glxgears_fbconfig.c b/progs/xdemos/glxgears_fbconfig.c index cf730e33811..cadcaeccf83 100644 --- a/progs/xdemos/glxgears_fbconfig.c +++ b/progs/xdemos/glxgears_fbconfig.c @@ -32,6 +32,8 @@ */ +#define GLX_GLXEXT_PROTOTYPES + #include <math.h> #include <stdlib.h> #include <stdio.h> @@ -44,7 +46,7 @@ #include <assert.h> #include "pbutil.h" -/* I had to the the SGIX versions of these because for some reason glxext.h +/* I had to use the SGIX versions of these because for some reason glxext.h * doesn't define the core versions if GLX_VERSION_1_3 is defined, and glx.h * doesn't define them at all. One or both header files is clearly broken. */ @@ -436,7 +438,7 @@ make_window( Display *dpy, const char *name, printf("\nThe following fbconfigs meet the requirements. The first one " "will be used.\n\n"); for ( i = 0 ; i < num_configs ; i++ ) { - PrintFBConfigInfo(dpy, fbconfig[i], GL_TRUE); + PrintFBConfigInfo(dpy, scrnum, fbconfig[i], GL_TRUE); } /* window attributes */ @@ -557,7 +559,7 @@ main(int argc, char *argv[]) Display *dpy; Window win; GLXContext ctx; - char *dpyName = ":0"; + const char *dpyName = NULL; GLboolean printInfo = GL_FALSE; int i; |