aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo/vo_macosx.m
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/vo_macosx.m')
-rw-r--r--libvo/vo_macosx.m8
1 files changed, 3 insertions, 5 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index cb505c25fa..7cf846b7c5 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -180,13 +180,14 @@ static void flip_page(void)
{
if(shared_buffer)
[mplayerosxProxy render];
- else
+ else {
+ [mpGLView setCurrentTexture];
[mpGLView render];
+ }
}
static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
{
- [mpGLView setCurrentTexture];
return 0;
}
@@ -205,9 +206,6 @@ static int draw_frame(uint8_t *src[])
break;
}
- if(!shared_buffer)
- [mpGLView setCurrentTexture];
-
return 0;
}