From b94619724327e555a348e2cdcd4c6d2ccde8f8b1 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 13 Sep 2012 09:32:59 +0200 Subject: cocoa_common: save state in the vo struct Save the cocoa state in an instance variable for the Objective-C part of the code and use a field in the vo struct for the raw C part of the code. --- libvo/vo_corevideo.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo/vo_corevideo.m') diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index d92e11ca1c..19a9003b9e 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -319,8 +319,8 @@ static uint32_t draw_image(struct vo *vo, mp_image_t *mpi) CVReturn error; if (!p->textureCache || !p->pixelBuffer) { - error = CVOpenGLTextureCacheCreate(NULL, 0, vo_cocoa_cgl_context(), - vo_cocoa_cgl_pixel_format(), 0, &p->textureCache); + error = CVOpenGLTextureCacheCreate(NULL, 0, vo_cocoa_cgl_context(vo), + vo_cocoa_cgl_pixel_format(vo), 0, &p->textureCache); if(error != kCVReturnSuccess) mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create OpenGL" " texture Cache(%d)\n", error); -- cgit v1.2.3