Mercurial > mplayer.hg
changeset 27168:166bd251be60
More stride alignment is needed to work reliably on ATI cards :-(
author | reimar |
---|---|
date | Fri, 04 Jul 2008 21:16:14 +0000 |
parents | d9b61fc3c5b7 |
children | 78d837adc71e |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Fri Jul 04 20:14:00 2008 +0000 +++ b/libvo/vo_gl.c Fri Jul 04 21:16:14 2008 +0000 @@ -692,7 +692,7 @@ GenBuffers(1, &gl_buffer); BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); if (ati_hack) - mpi->width = (mpi->width + 63) & ~63; + mpi->width = (mpi->width + 255) & ~255; mpi->stride[0] = mpi->width * mpi->bpp / 8; if (mpi->stride[0] * mpi->height > gl_buffersize) { BufferData(GL_PIXEL_UNPACK_BUFFER, mpi->stride[0] * mpi->height,