From f987625d5a84546b564bd15635c4051af5dc7113 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 28 Dec 2014 19:10:44 +0100 Subject: cocoa: move the gl function loader to gl_cocoa.c --- video/out/cocoa_common.m | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'video/out/cocoa_common.m') diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 6f4603b65f..01e28aceda 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -20,7 +20,6 @@ #import #import // for CGDisplayHideCursor #import -#include #import "cocoa_common.h" #import "video/out/cocoa/window.h" @@ -112,19 +111,6 @@ static void queue_new_video_size(struct vo *vo, int w, int h) } } -void *vo_cocoa_glgetaddr(const char *s) -{ - void *ret = NULL; - void *handle = dlopen( - "/System/Library/Frameworks/OpenGL.framework/OpenGL", - RTLD_LAZY | RTLD_LOCAL); - if (!handle) - return NULL; - ret = dlsym(handle, s); - dlclose(handle); - return ret; -} - static void enable_power_management(struct vo *vo) { struct vo_cocoa_state *s = vo->cocoa; -- cgit v1.2.3