From cd5cbd2c57065ac609ae2456cda13f5c47ab4cbb Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 6 Jul 2008 07:59:19 +0000 Subject: [PATCH] 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... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27216 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 5087997b11..623a5aaefa 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -690,6 +690,9 @@ static uint32_t get_image(mp_image_t *mpi) { 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; }