st/egl: Use correct driver_name field to get kernel driver name

This commit is contained in:
Jakob Bornecrantz
2010-04-20 23:51:22 +01:00
parent 8a0c99b379
commit 71595a5f3f
@@ -695,7 +695,7 @@ kms_display_init_screen(struct native_display *ndpy)
struct drm_create_screen_arg arg;
int fd;
fd = drmOpen(kdpy->api->name, NULL);
fd = drmOpen(kdpy->api->driver_name, NULL);
if (fd < 0) {
_eglLog(_EGL_WARNING, "failed to open DRM device");
return FALSE;