aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.c
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-07-13 22:20:38 +0100
committerEmil Velikov <[email protected]>2015-07-22 16:35:26 +0100
commitdc1ece3748f3a97d685c9c72ad26684fd35f1944 (patch)
treeacaf73f41450c42aab788bbc9a601ea9893dc9b4 /src/egl/drivers/dri2/egl_dri2.c
parent78674631a2d0ff1eb538470e2a1d516201361f03 (diff)
egl: remove flatten HAVE_SHARED_GLAPI
It is simply not possible to use the dri backend without shared glapi, as the alternative provider (libGL) is not always present. We have fixed the build for a while now, so we can rip this out. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index 65194cb990c..5600e8212d0 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -2365,7 +2365,6 @@ static EGLBoolean
dri2_load(_EGLDriver *drv)
{
struct dri2_egl_driver *dri2_drv = dri2_egl_driver(drv);
-#ifdef HAVE_SHARED_GLAPI
#ifdef HAVE_ANDROID_PLATFORM
const char *libname = "libglapi.so";
#elif defined(__APPLE__)
@@ -2373,13 +2372,6 @@ dri2_load(_EGLDriver *drv)
#else
const char *libname = "libglapi.so.0";
#endif
-#else
- /*
- * Both libGL.so and libglapi.so are glapi providers. There is no way to
- * tell which one to load.
- */
- const char *libname = NULL;
-#endif
void *handle;
/* RTLD_GLOBAL to make sure glapi symbols are visible to DRI drivers */