aboutsummaryrefslogtreecommitdiffstats
path: root/progs/xdemos/glxswapcontrol.c
diff options
context:
space:
mode:
authorJon TURNEY <[email protected]>2009-06-21 11:58:25 +0100
committerBrian Paul <[email protected]>2009-06-30 13:58:21 -0600
commit57955451f80c64f70e369508705ae95a515d18d8 (patch)
treefd52b8c28f3fbf46cd1122d859eeac4ec1fd9b08 /progs/xdemos/glxswapcontrol.c
parente5cb11addad31f698dc8261e7f96d5e3af4a85d6 (diff)
xdemos: Fix xdemos which default to using display :0.0 to default to $DISPLAY
Fix xdemos which default to using display :0.0 to default to $DISPLAY, this is kind of irritating when testing on a display other than :0.0 Signed-off-by: Jon TURNEY <[email protected]>
Diffstat (limited to 'progs/xdemos/glxswapcontrol.c')
-rw-r--r--progs/xdemos/glxswapcontrol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/glxswapcontrol.c b/progs/xdemos/glxswapcontrol.c
index 2c518019896..5a5d084f909 100644
--- a/progs/xdemos/glxswapcontrol.c
+++ b/progs/xdemos/glxswapcontrol.c
@@ -759,7 +759,7 @@ main(int argc, char *argv[])
Display *dpy;
Window win;
GLXContext ctx;
- char *dpyName = ":0";
+ char *dpyName = NULL;
int swap_interval = 1;
GLboolean do_swap_interval = GL_FALSE;
GLboolean force_get_rate = GL_FALSE;