summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-28 13:51:29 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-09-28 15:08:40 +0200
commit9d3943840cb472e7921a933a06477f53eca4a17e (patch)
treed993adfc14f5c84a2549a7fdea7ef551fc6a4482 /video/out/cocoa_common.h
parent73808cd8f0dd30e4cf361fc4bce20cb347e65172 (diff)
downloadmpv-9d3943840cb472e7921a933a06477f53eca4a17e.tar.bz2
mpv-9d3943840cb472e7921a933a06477f53eca4a17e.tar.xz
cocoa_common: call gl_clear indirectly
glClear needs GL headers and we don't want those in `cocoa_common`. Create a callback in `gl_cocoa` and register it `cocoa_common`. Fixes #264
Diffstat (limited to 'video/out/cocoa_common.h')
-rw-r--r--video/out/cocoa_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/cocoa_common.h b/video/out/cocoa_common.h
index 5584ae6b05..453e52c6c6 100644
--- a/video/out/cocoa_common.h
+++ b/video/out/cocoa_common.h
@@ -41,6 +41,9 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg);
void vo_cocoa_register_resize_callback(struct vo *vo,
void (*cb)(struct vo *vo, int w, int h));
+void vo_cocoa_register_gl_clear_callback(struct vo *vo, void *ctx,
+ void (*cb)(void *ctx));
+
// returns an int to conform to the gl extensions from other platforms
int vo_cocoa_swap_interval(int enabled);