diff options
author | Brian Paul <brianp@vmware.com> | 2009-08-18 17:54:44 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-08-18 17:54:44 -0600 |
commit | e4aa62a6ce7067269c0befb984bcb8136420cb2c (patch) | |
tree | b5b3f335fa513763bb3219fc1c31fb269389fad7 /src | |
parent | b062a119ff5fa06fe7b2e40262829f93cde63a96 (diff) |
egl/xlib: move call to create_configs() after we set the Xdpy field
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/egl_xlib/egl_xlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c index 7a667568b8..1fcdd2dceb 100644 --- a/src/gallium/winsys/egl_xlib/egl_xlib.c +++ b/src/gallium/winsys/egl_xlib/egl_xlib.c @@ -197,12 +197,12 @@ xlib_eglInitialize(_EGLDriver *drv, _EGLDisplay *dpy, { struct xlib_egl_driver *xdrv = xlib_egl_driver(drv); - create_configs(drv, dpy); - if (!dpy->Xdpy) { dpy->Xdpy = XOpenDisplay(NULL); } + create_configs(drv, dpy); + dpy->ClientAPIsMask = xdrv->apis; /* we're supporting EGL 1.4 */ |