egl/xlib: move call to create_configs() after we set the Xdpy field
authorBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:54:44 +0000 (17:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 18 Aug 2009 23:54:44 +0000 (17:54 -0600)
src/gallium/winsys/egl_xlib/egl_xlib.c

index 7a667568b8f2638f41b4cfd4b772ef6c64f7f5db..1fcdd2dceb028f2441b99a224bfdb27243f2514f 100644 (file)
@@ -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 */