From: Alan Hourihane Date: Fri, 26 Sep 2008 11:18:59 +0000 (+0100) Subject: egl: switch to egl_glx.so as the default EGL driver for X. X-Git-Tag: 062012170305~17580^2~496^2~630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc6bdf49ca19c08d0c7134d2cd881b9c166cdc8a;p=profile%2Fivi%2Fmesa.git egl: switch to egl_glx.so as the default EGL driver for X. --- diff --git a/src/egl/main/eglx.c b/src/egl/main/eglx.c index 1bba149..50acc3a 100644 --- a/src/egl/main/eglx.c +++ b/src/egl/main/eglx.c @@ -44,7 +44,7 @@ #include "eglx.h" -static const char *DefaultDRIDriver = "egl_xdri"; +static const char *DefaultGLXDriver = "egl_glx"; static const char *DefaultSoftDriver = "egl_softpipe"; @@ -52,7 +52,7 @@ static const char *DefaultSoftDriver = "egl_softpipe"; * Given an X Display ptr (at dpy->Xdpy) try to determine the appropriate * device driver. Return its name. * - * This boils down to whether to use the egl_xdri.so driver which will + * This boils down to whether to use the egl_glx.so driver which will * load a DRI driver or the egl_softpipe.so driver that'll do software * rendering on Xlib. */ @@ -82,9 +82,8 @@ _xeglChooseDriver(_EGLDisplay *dpy) /* See if we can choose a DRI/DRM driver */ driverName = _eglChooseDRMDriver(screen); if (driverName) { - /* DRI is available */ free((void *) driverName); - driverName = _eglstrdup(DefaultDRIDriver); + driverName = _eglstrdup(DefaultGLXDriver); } else { driverName = _eglstrdup(DefaultSoftDriver);