From d7882cb89b1231c7591a2a306281304cfb52abe4 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sat, 29 Mar 2014 23:41:58 +0100 Subject: [PATCH] Aligned libGL soname to Linux ABI. Fixed #261. --- src/glx_context.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/glx_context.c b/src/glx_context.c index f8bb8eee..e1731705 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -166,23 +166,7 @@ static GLXContext createLegacyContext(_GLFWwindow* window, int _glfwInitContextAPI(void) { #ifdef _GLFW_DLOPEN_LIBGL - int i; - char* libGL_names[ ] = - { - "libGL.so", - "libGL.so.1", - "/usr/lib/libGL.so", - "/usr/lib/libGL.so.1", - NULL - }; - - for (i = 0; libGL_names[i] != NULL; i++) - { - _glfw.glx.libGL = dlopen(libGL_names[i], RTLD_LAZY | RTLD_GLOBAL); - if (_glfw.glx.libGL) - break; - } - + _glfw.glx.libGL = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL); if (!_glfw.glx.libGL) { _glfwInputError(GLFW_PLATFORM_ERROR, "GLX: Failed to find libGL");