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

reimar subversion at mplayerhq.hu
Sun Jul 6 09:59:19 CEST 2008


Author: reimar
Date: Sun Jul  6 09:59:19 2008
New Revision: 27216

Log:
One more hack for PBOs on ATI cards.
Either I am doing something very wrong or they managed to code at about 1 bug per line...


Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Sun Jul  6 09:59:19 2008
@@ -690,6 +690,9 @@ static uint32_t get_image(mp_image_t *mp
   if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
   if (ati_hack) {
     int s = 1;
+    // for unexplainable reasons, with width < 512 chroma tends to be messed up
+    // (after ca. 2/3 the previous line repeats all over)
+    if (mpi->width < 512) return VO_FALSE;
     while (s < mpi->width) s *= 2;
     mpi->width = s;
   }



More information about the MPlayer-cvslog mailing list