1
mirror of https://github.com/mpv-player/mpv synced 2024-10-22 08:51:57 +02:00

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
This commit is contained in:
reimar 2008-07-06 07:59:19 +00:00
parent fcf655c887
commit cd5cbd2c57

View File

@ -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;
}