diff options
author | Chia-I Wu <[email protected]> | 2010-01-26 18:41:15 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-01-26 18:46:06 +0800 |
commit | 092b1ca989ba3bdc3f4d421b83b3943af260b7db (patch) | |
tree | 065fe64d024b6045808fcd94f7ad9215080e9ccd /src/egl/main/eglapi.c | |
parent | 545eaf83b5f096e5b16b2056e13b76f58d9211c9 (diff) |
egl: Remove _eglOpenDriver and _eglCloseDriver.
_eglCloseDriver is no-op and _eglOpenDriver does nothing but call
_eglMatchDriver. Export _eglMatchDriver directly.
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r-- | src/egl/main/eglapi.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 492a14180aa..90828bd3e90 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; } |