aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri/egldri.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-28 12:56:36 -0600
committerBrian Paul <[email protected]>2008-05-28 12:56:36 -0600
commit0c8908c411c434eda318b41b4f2a370a1e794831 (patch)
treed8a1fd0e24383fb3f5e279f33da4c5f8b4c271c5 /src/egl/drivers/dri/egldri.c
parente94d383b9ba7964da9fefac2a55e10c00ee72392 (diff)
egl: added args string to _eglMain()
Diffstat (limited to 'src/egl/drivers/dri/egldri.c')
-rw-r--r--src/egl/drivers/dri/egldri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/egl/drivers/dri/egldri.c b/src/egl/drivers/dri/egldri.c
index f00625a0593..677073fb3a0 100644
--- a/src/egl/drivers/dri/egldri.c
+++ b/src/egl/drivers/dri/egldri.c
@@ -79,11 +79,11 @@ driver_name_from_card_number(int card, char *driverName, int maxDriverName)
* This function, in turn, loads a specific DRI driver (ex: r200_dri.so).
*/
_EGLDriver *
-_eglMain(_EGLDisplay *dpy)
+_eglMain(_EGLDisplay *dpy, const char *args)
{
#if 1
const char *displayString = (const char *) dpy->NativeDisplay;
- const int card = atoi(displayString + 1);
+ const int card = atoi(args);
_EGLDriver *driver = NULL;
char driverName[1000];