From 679bb9b14ba7c498dee2e7b44afdd28b7f341d45 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Sat, 24 May 2014 01:32:13 +0200 Subject: AntTweakBar: fix dynamic loading of OpenGL framework Closes #29535. --- Library/Formula/anttweakbar.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Library') 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) + { -- cgit v1.2.3