fix glxinfo to query current display.
authorAlan Hourihane <alanh@tungstengraphics.com>
Mon, 19 Mar 2001 13:58:45 +0000 (13:58 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Mon, 19 Mar 2001 13:58:45 +0000 (13:58 +0000)
progs/xdemos/glxinfo.c

index b2b06f144f496cf0090f7372b65db9677659ddff..cfc3bc4a1aab1d380014d98edf67e1cd0ffc69eb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: glxinfo.c,v 1.10 2000/05/08 14:53:57 brianp Exp $ */
+/* $Id: glxinfo.c,v 1.11 2001/03/19 13:58:45 alanh Exp $ */
 
 /*
  * Copyright (C) 1999  Brian Paul   All Rights Reserved.
@@ -492,7 +492,7 @@ print_visual_info(Display *dpy, int scrnum, InfoMode mode)
 int
 main(int argc, char *argv[])
 {
-   char *displayName = ":0";
+   char *displayName = NULL;
    Display *dpy;
    int numScreens, scrnum;
    InfoMode mode = Normal;