From: Brian Paul Date: Tue, 18 Aug 2009 23:54:44 +0000 (-0600) Subject: egl/xlib: move call to create_configs() after we set the Xdpy field X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4aa62a6ce7067269c0befb984bcb8136420cb2c;p=mesa.git egl/xlib: move call to create_configs() after we set the Xdpy field --- diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c index 7a667568b8f..1fcdd2dceb0 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 */