summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/egl/drivers/dri/egldri.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/egl/drivers/dri/egldri.c b/src/egl/drivers/dri/egldri.c
index 677073fb3a0..35b6d0d3d10 100644
--- a/src/egl/drivers/dri/egldri.c
+++ b/src/egl/drivers/dri/egldri.c
@@ -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;