/** * Add drivers to the module array. Drivers will be loaded as they are matched * to displays. */ static EGLBoolean _eglAddDrivers(void) { if (_eglModules) return EGL_TRUE; /* the order here decides the priorities of the drivers */ _eglAddUserDriver(); _eglAddDefaultDrivers(); _eglPreloadForEach(_eglGetSearchPath(), _eglLoaderPattern, (void *) "egl_"); return (_eglModules != NULL); }
/** * Add drivers to the module array. Drivers will be loaded as they are matched * to displays. */ static EGLBoolean _eglAddDrivers(void) { if (_eglModules) return EGL_TRUE; if (!_eglAddUserDriver()) { /* * Add other drivers only when EGL_DRIVER is not set. The order here * decides the priorities. */ _eglAddBuiltInDrivers(); } return (_eglModules != NULL); }