changeset 27184:a7d88d135561

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...
author reimar
date Sun, 06 Jul 2008 07:59:19 +0000
parents 46e043b71654
children ff18b81371e5
files libvo/vo_gl.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Sun Jul 06 07:53:36 2008 +0000
+++ b/libvo/vo_gl.c	Sun Jul 06 07:59:19 2008 +0000
@@ -690,6 +690,9 @@
   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;
   }