diff options
author | Christian Gmeiner <[email protected]> | 2016-11-03 15:25:21 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-11-15 15:56:52 +0000 |
commit | 1a21d21580965eff751414d140b3c176eeee2eb3 (patch) | |
tree | b30320deb28215f2db0e319aa706496b6ce484c7 /src/glx/dri_common.c | |
parent | 0890aa6f7fdbe33721b8ef2039608390c5aa886e (diff) |
dri: make use of dri_get_extensions_name(..) helper
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glx/dri_common.c')
-rw-r--r-- | src/glx/dri_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index 6728d38fa0a..67cf3c86fa8 100644 --- a/src/glx/dri_common.c +++ b/src/glx/dri_common.c @@ -161,10 +161,9 @@ driGetDriverExtensions(void *handle, const char *driver_name) { const __DRIextension **extensions = NULL; const __DRIextension **(*get_extensions)(void); - char *get_extensions_name; + char *get_extensions_name = dri_get_extensions_name(driver_name); - if (asprintf(&get_extensions_name, "%s_%s", - __DRI_DRIVER_GET_EXTENSIONS, driver_name) != -1) { + if (get_extensions_name) { get_extensions = dlsym(handle, get_extensions_name); if (get_extensions) { free(get_extensions_name); |