From d7b6ebf64391327c60bdf50becd945f6237e5c9e Mon Sep 17 00:00:00 2001 From: Akemi Date: Wed, 28 Feb 2018 14:58:31 +0100 Subject: cocoa-cb: move the GL dummy function to swift it's possible to get a function pointer through a closure after all in swift. remove the GL dummy function from the c header and do it in the swift code instead. --- osdep/macOS_swift_bridge.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'osdep/macOS_swift_bridge.h') diff --git a/osdep/macOS_swift_bridge.h b/osdep/macOS_swift_bridge.h index d662dbcf4e..6886fce636 100644 --- a/osdep/macOS_swift_bridge.h +++ b/osdep/macOS_swift_bridge.h @@ -47,8 +47,3 @@ static int SWIFT_KEY_MOUSE_LEAVE = MP_KEY_MOUSE_LEAVE; static int SWIFT_KEY_MOUSE_ENTER = MP_KEY_MOUSE_ENTER; static int SWIFT_KEY_STATE_DOWN = MP_KEY_STATE_DOWN; static int SWIFT_KEY_STATE_UP = MP_KEY_STATE_UP; - -// dummy function to override glFlush() -static void glDummy() {} -static void *glDummyPtr(void) __attribute__((unused)); -static void *glDummyPtr() { return &glDummy; } -- cgit v1.2.3