diff options
author | Kristian Høgsberg <[email protected]> | 2011-05-11 13:58:37 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2011-05-13 09:31:09 -0400 |
commit | 93aea63a33c575bbce80acad391e810acc2f3e94 (patch) | |
tree | fd710936588f3fcc87ba5540c8ab0d02f88962a5 /src/egl/drivers/dri2/egl_dri2.c | |
parent | 64e3cd0c4282bbbbd441a5fb9711f5a37208c18f (diff) |
egl_dri2: Make it possible to not compile in the X11 platform
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d77f0ed67d1..10309e6eeaf 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -490,10 +490,12 @@ dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp) return EGL_FALSE; switch (disp->Platform) { +#ifdef HAVE_X11_PLATFORM case _EGL_PLATFORM_X11: if (disp->Options.TestOnly) return EGL_TRUE; return dri2_initialize_x11(drv, disp); +#endif #ifdef HAVE_LIBUDEV case _EGL_PLATFORM_DRM: @@ -528,8 +530,10 @@ dri2_terminate(_EGLDriver *drv, _EGLDisplay *disp) if (dri2_dpy->fd) close(dri2_dpy->fd); dlclose(dri2_dpy->driver); +#ifdef HAVE_X11_PLATFORM if (disp->PlatformDisplay == NULL) xcb_disconnect(dri2_dpy->conn); +#endif free(dri2_dpy); disp->DriverData = NULL; |