From fb10c8987745cbe69c5f36e9c1c6f2c70b44b761 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Tue, 15 Nov 2016 18:01:20 +0000 Subject: Revert "dri: make use of dri_get_extensions_name(..) helper" This reverts commit 1a21d21580965eff751414d140b3c176eeee2eb3. Pushed the wrong version of the patch. --- src/gbm/backends/dri/gbm_dri.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gbm/backends/dri/gbm_dri.c') diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 4cb7f2775d9..5cd7318d57b 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -363,9 +363,8 @@ dri_open_driver(struct gbm_dri_device *dri) return NULL; } - get_extensions_name = dri_get_extensions_name(dri->base.driver_name); - - if (get_extensions_name) { + if (asprintf(&get_extensions_name, "%s_%s", + __DRI_DRIVER_GET_EXTENSIONS, dri->base.driver_name) != -1) { const __DRIextension **(*get_extensions)(void); get_extensions = dlsym(dri->driver, get_extensions_name); -- cgit v1.2.3