diff options
author | Brian <[email protected]> | 2007-04-09 11:21:51 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-09 11:21:51 -0600 |
commit | 702c8f1e6ca51aef356e89ee9c5f2e99a4191a8a (patch) | |
tree | 18d5a1538c18113375830ca43bc439ac3bb437a3 /src/glx | |
parent | f9574c3f6bd982f039b4c3ec3bb278cc3d043d29 (diff) |
remove unneeded initialization code (see bug 10569)
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/x11/glxext.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 003c5ee4828..af3a5166dc6 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); } |