egl/xlib: move call to create_configs() after we set the Xdpy field

This commit is contained in:
Brian Paul 2009-08-18 17:54:44 -06:00
parent b062a119ff
commit e4aa62a6ce

View 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 */