remove unneeded initialization code (see bug 10569)
authorBrian <brian@yutani.localnet.net>
Mon, 9 Apr 2007 17:21:51 +0000 (11:21 -0600)
committerBrian <brian@yutani.localnet.net>
Mon, 9 Apr 2007 17:21:51 +0000 (11:21 -0600)
src/glx/x11/glxext.c

index 003c5ee48282c90427ad3432e2ee3d164891e43f..af3a5166dc6d03a4cc5b5b8b8e298df2360b9c85 100644 (file)
@@ -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);
     }