From 167e249b9b4def417f631d9c08c8a1c9784e9062 Mon Sep 17 00:00:00 2001 From: "Adam D. Moss" Date: Mon, 26 Jan 2015 11:12:53 +0000 Subject: [PATCH] Open libGL.so.1 instead of libGL.so on unixoids. This is what SDL and GLFW itself do, and is debatably the preferred form according to the unclear official ABI recommendations. This stops (for example) the mesa / unaccelerated libs being loaded on machines with nvidia drivers etc. --- glfw_base.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw_base.lua b/glfw_base.lua index a6cd2b0..43483e5 100644 --- a/glfw_base.lua +++ b/glfw_base.lua @@ -14,7 +14,7 @@ if ffi.os == "Windows" then glu = ffi.load("glu32") glfw = ffi.load("glfw3") else - gl = ffi.load("GL") + gl = ffi.load("GL.so.1") glu = ffi.load("GLU") glfw = ffi.load("glfw.so.3") end