summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 07:59:19 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-06 07:59:19 +0000
commitcd5cbd2c57065ac609ae2456cda13f5c47ab4cbb (patch)
treecdcab2bfcc7c0c575ad28dc4731242dd87c23cbd /libvo
parentfcf655c88747d79249fd761e77ab3b242a3d3801 (diff)
downloadmpv-cd5cbd2c57065ac609ae2456cda13f5c47ab4cbb.tar.bz2
mpv-cd5cbd2c57065ac609ae2456cda13f5c47ab4cbb.tar.xz
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c3
1 files changed, 3 insertions, 0 deletions
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;
}