From 48371c589d6d72d1cdcf454c3e95322029d1f2dc Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 9 Feb 2004 21:44:07 +0000 Subject: [PATCH] default to :0.0, don't crash on exit --- panda/src/glxdisplay/glxGraphicsPipe.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/glxdisplay/glxGraphicsPipe.cxx b/panda/src/glxdisplay/glxGraphicsPipe.cxx index 8f74dba812..7e5739860d 100644 --- a/panda/src/glxdisplay/glxGraphicsPipe.cxx +++ b/panda/src/glxdisplay/glxGraphicsPipe.cxx @@ -44,6 +44,9 @@ glxGraphicsPipe(const string &display) { if (display_spec.empty()) { display_spec = ExecutionEnvironment::get_environment_variable("DISPLAY"); } + if (display_spec.empty()) { + display_spec = ":0.0"; + } setlocale(LC_ALL, ""); @@ -52,6 +55,7 @@ glxGraphicsPipe(const string &display) { _display = NULL; _screen = 0; _root = (Window)NULL; + _im = (XIM)NULL; install_error_handlers();