summaryrefslogtreecommitdiffstats
path: root/otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch
diff options
context:
space:
mode:
Diffstat (limited to 'otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch')
-rw-r--r--otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch b/otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch
new file mode 100644
index 0000000..5e78c4a
--- /dev/null
+++ b/otp-0007-Fix-for-dlopening-libGL-and-libGLU.patch
@@ -0,0 +1,35 @@
+From 6ffccff36e0d94cba0412cf3a29769b4a19d3be3 Mon Sep 17 00:00:00 2001
+From: Peter Lemenkov <lemenkov@gmail.com>
+Date: Fri, 16 Apr 2010 21:13:47 +0400
+Subject: [PATCH 7/9] Fix for dlopening libGL and libGLU
+
+Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
+---
+ lib/wx/c_src/wxe_gl.cpp | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/wx/c_src/wxe_gl.cpp b/lib/wx/c_src/wxe_gl.cpp
+index 63dd68f..36bf15f 100644
+--- a/lib/wx/c_src/wxe_gl.cpp
++++ b/lib/wx/c_src/wxe_gl.cpp
+@@ -81,7 +81,7 @@ int initOpenGL()
+ WCHAR * DLName = wxT("opengl32.dll");
+ HMODULE LIBhandle = LoadLibrary(DLName);
+ #else
+- char * DLName = (char *) "libGL.so";
++ char * DLName = (char *) "libGL.so.1";
+ void * LIBhandle = dlopen(DLName, RTLD_LAZY);
+ #endif
+ // fprintf(stderr, "Loading GL: %s\r\n", (const char*)DLName);
+@@ -132,7 +132,7 @@ int initOpenGL()
+ DLName = wxT("glu32.dll");
+ LIBhandle = LoadLibrary(DLName);
+ #else
+- DLName = (char *) "libGLU.so";
++ DLName = (char *) "libGLU.so.1";
+ LIBhandle = dlopen(DLName, RTLD_LAZY);
+ #endif
+ // fprintf(stderr, "Loading GL: %s\r\n", (const char*)DLName);
+--
+1.6.6.1
+