comments in _eglMain()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 28 May 2008 16:40:25 +0000 (10:40 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 29 May 2008 23:04:24 +0000 (17:04 -0600)
src/egl/drivers/dri/egldri.c

index 35b6d0d3d1006e086e2e960120d102f4184462e3..1a922a74717b3277072d8f6253ab8b67e58d3133 100644 (file)
@@ -114,6 +114,10 @@ _eglMain(_EGLDisplay *dpy, const char *args)
       _eglLog(_EGL_WARNING, "%s DRM devices not found.", path);
       return EGL_FALSE;
    }
+
+   /* loop over dir entries looking for cardX where "X" is in the
+    * dpy->DriverName ":X" string.
+    */
    while ((dirent = readdir(dir))) {
 
       if (strncmp(&dirent->d_name[0], "card", 4) != 0)