diff options
author | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-15 18:01:20 +0000 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-11-15 18:15:15 +0000 |
commit | fb10c8987745cbe69c5f36e9c1c6f2c70b44b761 (patch) | |
tree | 4f7f12da06269995b9595c4270f63f55a7f544d3 /src/glx | |
parent | 358079da2d6705cf4966b8de802e99362c39c38a (diff) |
Revert "dri: make use of dri_get_extensions_name(..) helper"
This reverts commit 1a21d21580965eff751414d140b3c176eeee2eb3.
Pushed the wrong version of the patch.
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/dri_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 67cf3c86fa..6728d38fa0 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -161,9 +161,10 @@ driGetDriverExtensions(void *handle, const char *driver_name) { const __DRIextension **extensions = NULL; const __DRIextension **(*get_extensions)(void); - char *get_extensions_name = dri_get_extensions_name(driver_name); + char *get_extensions_name; - if (get_extensions_name) { + if (asprintf(&get_extensions_name, "%s_%s", + __DRI_DRIVER_GET_EXTENSIONS, driver_name) != -1) { get_extensions = dlsym(handle, get_extensions_name); if (get_extensions) { free(get_extensions_name); |