summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorFelix Geyer <debfx-pkg@fobos.de>2010-08-06 21:27:11 +0200
committerFelix Geyer <debfx-pkg@fobos.de>2010-08-06 21:27:11 +0200
commitadf97a4e6386ea334ce8d77f0cde3b92454b9fa5 (patch)
tree62a6d6e6a4743f2aa3e55fa0cdc850fb1d6a2eb9 /configure
parent3cc524b669caddac0b3c8c8fd0b57eaff7f490eb (diff)
downloadvirtualbox-adf97a4e6386ea334ce8d77f0cde3b92454b9fa5.tar.gz
Imported Upstream version 3.2.8-dfsgupstream/3.2.8-dfsg
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index aabf148c3..1051511e3 100755
--- a/configure
+++ b/configure
@@ -1388,12 +1388,13 @@ extern "C" int main(void)
dpy = XOpenDisplay(NULL);
if (dpy)
{
- if (glXQueryVersion(dpy, &major, &minor))
+ Bool glx_version = glXQueryVersion(dpy, &major, &minor);
+ XCloseDisplay(dpy);
+ if (glx_version)
{
printf("found version %u.%u, OK.\n", major, minor);
return 0;
}
- XCloseDisplay(dpy);
}
printf("found (inactive), OK.\n");
return 0;