From a4a38dcf61f141297a083ccac217200947d57b0d Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Thu, 13 Jan 2011 16:53:13 +0800 Subject: egl: Cleanup _EGLDisplay initialization. Reorder/rename and document the fields that should be set by the driver during initialization. Drop the major/minor arguments from drv->API.Initialize. --- src/egl/main/egldriver.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/egl/main/egldriver.c') diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 0f2e40abf57..1ae030db448 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -537,7 +537,7 @@ _eglMatchDriver(_EGLDisplay *dpy, EGLBoolean use_probe) _EGLModule *mod; _EGLDriver *best_drv = NULL; EGLint best_score = 0; - EGLint major, minor, i; + EGLint i; _eglLockMutex(&_eglModuleMutex); @@ -562,7 +562,7 @@ _eglMatchDriver(_EGLDisplay *dpy, EGLBoolean use_probe) } } else { - if (mod->Driver->API.Initialize(mod->Driver, dpy, &major, &minor)) { + if (mod->Driver->API.Initialize(mod->Driver, dpy)) { best_drv = mod->Driver; best_score = 100; } @@ -591,7 +591,7 @@ _eglMatchDriver(_EGLDisplay *dpy, EGLBoolean use_probe) mod->Driver->Probe(mod->Driver, dpy) : 1; } else { - if (mod->Driver->API.Initialize(mod->Driver, dpy, &major, &minor)) + if (mod->Driver->API.Initialize(mod->Driver, dpy)) best_score = 100; } @@ -621,8 +621,6 @@ _eglMatchDriver(_EGLDisplay *dpy, EGLBoolean use_probe) if (!use_probe) { dpy->Driver = best_drv; dpy->Initialized = EGL_TRUE; - dpy->APImajor = major; - dpy->APIminor = minor; } } -- cgit v1.2.3