From 80806c98ef9892abb225965f29027c9b201749ec Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Sep 2013 15:36:59 -0700 Subject: glx: Move the driver extension-loading to a helper function. I'm planning on doing driver extension parsing from 3 places, and making the extension loading step a bit longer. Reviewed-by: Matt Turner Reviewed-by: Chad Versace Reviewed-by: Emil Velikov --- src/glx/dri2_glx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/glx/dri2_glx.c') diff --git a/src/glx/dri2_glx.c b/src/glx/dri2_glx.c index 07138fb11f8..123c87cbac9 100644 --- a/src/glx/dri2_glx.c +++ b/src/glx/dri2_glx.c @@ -1183,11 +1183,9 @@ dri2CreateScreen(int screen, struct glx_display * priv) goto handle_error; } - extensions = dlsym(psc->driver, __DRI_DRIVER_EXTENSIONS); - if (extensions == NULL) { - ErrorMessageF("driver exports no extensions (%s)\n", dlerror()); + extensions = driGetDriverExtensions(psc->driver); + if (extensions == NULL) goto handle_error; - } for (i = 0; extensions[i]; i++) { if (strcmp(extensions[i]->name, __DRI_CORE) == 0) -- cgit v1.2.3