[MPlayer-cvslog] r35187 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Thu Sep 13 23:45:15 CEST 2012


Author: reimar
Date: Thu Sep 13 23:45:14 2012
New Revision: 35187

Log:
gl: Disable double-buffering on OS X, it does not work currently an
probably has no benefit anyway.

Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	Thu Sep 13 22:44:46 2012	(r35186)
+++ trunk/libvo/vo_gl.c	Thu Sep 13 23:45:14 2012	(r35187)
@@ -1370,6 +1370,14 @@ static int preinit_internal(const char *
       // 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");


More information about the MPlayer-cvslog mailing list