From 092b1ca989ba3bdc3f4d421b83b3943af260b7db Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 26 Jan 2010 18:41:15 +0800 Subject: egl: Remove _eglOpenDriver and _eglCloseDriver. _eglCloseDriver is no-op and _eglOpenDriver does nothing but call _eglMatchDriver. Export _eglMatchDriver directly. --- src/egl/main/eglapi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/egl/main/eglapi.c') diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 492a14180a..90828bd3e9 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -104,15 +104,13 @@ eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor) if (!drv) { _eglPreloadDrivers(); - drv = _eglOpenDriver(disp); + drv = _eglMatchDriver(disp); if (!drv) return _eglError(EGL_NOT_INITIALIZED, __FUNCTION__); /* Initialize the particular display now */ - if (!drv->API.Initialize(drv, disp, &major_int, &minor_int)) { - _eglCloseDriver(drv, disp); + if (!drv->API.Initialize(drv, disp, &major_int, &minor_int)) return _eglError(EGL_NOT_INITIALIZED, __FUNCTION__); - } disp->APImajor = major_int; disp->APIminor = minor_int; @@ -150,7 +148,6 @@ eglTerminate(EGLDisplay dpy) drv = disp->Driver; if (drv) { drv->API.Terminate(drv, disp); - _eglCloseDriver(drv, disp); disp->Driver = NULL; } -- cgit v1.2.3