# HG changeset patch # User reimar # Date 1347572714 0 # Node ID 627492239a72d516e9c11d10c5834c0761ed0a67 # Parent cc8276116e950ce4fff81868b453440704cc0318 gl: Disable double-buffering on OS X, it does not work currently an probably has no benefit anyway. diff -r cc8276116e95 -r 627492239a72 libvo/vo_gl.c --- a/libvo/vo_gl.c Thu Sep 13 20:44:46 2012 +0000 +++ b/libvo/vo_gl.c Thu Sep 13 21:45:14 2012 +0000 @@ -1370,6 +1370,14 @@ // rare feature, not worth creating a window to detect use_ycbcr = 0; } + if (glctx.type == GLTYPE_OSX && vo_doublebuffering) { + // doublebuffering causes issues when e.g. drawing yuy2 textures + // (nothing is draw) unless using glfinish which makes things slow. + // This is possibly because we do not actually request a double-buffered + // context. + mp_msg(MSGT_VO, MSGL_INFO, "[gl] -double not supported on OSX, switching to -nodouble\n"); + vo_doublebuffering = 0; + } if (many_fmts) mp_msg(MSGT_VO, MSGL_INFO, "[gl] using extended formats. " "Use -vo gl:nomanyfmts if playback fails.\n");