mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 03:08:33 +00: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:
parent
fcf655c887
commit
cd5cbd2c57
@ -690,6 +690,9 @@ static uint32_t get_image(mp_image_t *mpi) {
|
|||||||
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
|
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
|
||||||
if (ati_hack) {
|
if (ati_hack) {
|
||||||
int s = 1;
|
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;
|
while (s < mpi->width) s *= 2;
|
||||||
mpi->width = s;
|
mpi->width = s;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user