From 702c8f1e6ca51aef356e89ee9c5f2e99a4191a8a Mon Sep 17 00:00:00 2001 From: Brian Date: Mon, 9 Apr 2007 11:21:51 -0600 Subject: remove unneeded initialization code (see bug 10569) --- src/glx/x11/glxext.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/glx/x11') diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 003c5ee482..af3a5166dc 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1271,12 +1271,7 @@ __GLXdisplayPrivate *__glXInitialize(Display* dpy) ** Note: This _must_ be done before calling any other DRI routines ** (e.g., those called in AllocAndFetchScreenConfigs). */ - if (getenv("LIBGL_ALWAYS_INDIRECT")) { - /* Assinging zero here assures we'll never go direct */ - dpyPriv->driDisplay.private = 0; - dpyPriv->driDisplay.destroyDisplay = 0; - } - else { + if (getenv("LIBGL_ALWAYS_INDIRECT") == NULL) { dpyPriv->driDisplay.private = driCreateDisplay(dpy, &dpyPriv->driDisplay); } -- cgit v1.2.3