egl: pass args to _eglOpenDriver()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 May 2008 19:03:59 +0000 (13:03 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 May 2008 19:03:59 +0000 (13:03 -0600)
src/egl/drivers/dri/egldri.c

index 677073fb3a0d83b4b42f6fd647082a5b8b335dac..35b6d0d3d1006e086e2e960120d102f4184462e3 100644 (file)
@@ -82,7 +82,6 @@ _EGLDriver *
 _eglMain(_EGLDisplay *dpy, const char *args)
 {
 #if 1
-   const char *displayString = (const char *) dpy->NativeDisplay;
    const int card = atoi(args);
    _EGLDriver *driver = NULL;
    char driverName[1000];
@@ -95,7 +94,7 @@ _eglMain(_EGLDisplay *dpy, const char *args)
 
    _eglLog(_EGL_DEBUG, "Driver name: %s\n", driverName);
 
-   driver = _eglOpenDriver(dpy, driverName);
+   driver = _eglOpenDriver(dpy, driverName, args);
 
    return driver;