diff options
| author | Eduardo San Martin Morote | 2014-05-24 01:32:13 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-05-24 10:14:35 -0500 |
| commit | 679bb9b14ba7c498dee2e7b44afdd28b7f341d45 (patch) | |
| tree | 6286ac3408b2db6d195fb6ab688083772a0022d0 /Library/Formula | |
| parent | 37146c4c60e5edb53dea7e2755a0f8e7045397ed (diff) | |
| download | homebrew-679bb9b14ba7c498dee2e7b44afdd28b7f341d45.tar.bz2 | |
AntTweakBar: fix dynamic loading of OpenGL framework
Closes #29535.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/anttweakbar.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/anttweakbar.rb b/Library/Formula/anttweakbar.rb index d9df6a457..94d6e2751 100644 --- a/Library/Formula/anttweakbar.rb +++ b/Library/Formula/anttweakbar.rb @@ -8,6 +8,7 @@ class Anttweakbar < Formula # See # http://sourceforge.net/p/anttweakbar/code/ci/5a076d13f143175a6bda3c668e29a33406479339/tree/src/LoadOGLCore.h?diff=5528b167ed12395a60949d7c643262b6668f15d5&diformat=regular + # https://sourceforge.net/p/anttweakbar/tickets/14/ patch :DATA def install @@ -50,3 +51,16 @@ index 8aaab1e..b606d2b 100644 ANT_GL_CORE_DECL(void, glUseProgram, (GLuint program))
ANT_GL_CORE_DECL(void, glUniform1f, (GLint location, GLfloat v0))
ANT_GL_CORE_DECL(void, glUniform2f, (GLint location, GLfloat v0, GLfloat v1))
+diff --git a/src/LoadOGLCore.cpp b/src/LoadOGLCore.cpp +index 2daa573..b8b9151 100644 +--- a/src/LoadOGLCore.cpp ++++ b/src/LoadOGLCore.cpp +@@ -484,7 +484,7 @@ namespace GLCore { PFNGLGetProcAddress _glGetProcAddress = NULL; } + void *proc=NULL;
+ if (gl_dyld == NULL)
+ {
+- gl_dyld = dlopen("OpenGL",RTLD_LAZY);
++ gl_dyld = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL",RTLD_LAZY);
+ }
+ if (gl_dyld)
+ {
|
