From 1a21d21580965eff751414d140b3c176eeee2eb3 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Thu, 3 Nov 2016 15:25:21 +0100 Subject: dri: make use of dri_get_extensions_name(..) helper Signed-off-by: Christian Gmeiner Reviewed-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/egl/drivers') diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d9e2ad701b7..593dd012330 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -514,8 +514,9 @@ dri2_open_driver(_EGLDisplay *disp) _eglLog(_EGL_DEBUG, "DRI2: dlopen(%s)", path); - if (asprintf(&get_extensions_name, "%s_%s", - __DRI_DRIVER_GET_EXTENSIONS, dri2_dpy->driver_name) != -1) { + get_extensions_name = dri_get_extensions_name(dri2_dpy->driver_name); + + if (get_extensions_name) { get_extensions = dlsym(dri2_dpy->driver, get_extensions_name); if (get_extensions) { extensions = get_extensions(); -- cgit v1.2.3