From 9d3943840cb472e7921a933a06477f53eca4a17e Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 28 Sep 2013 13:51:29 +0200 Subject: 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 --- video/out/cocoa_common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'video/out/cocoa_common.h') 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); -- cgit v1.2.3