1
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 00:06:25 +01:00

More stride alignment is needed to work reliably on ATI cards :-(

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27200 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2008-07-04 21:16:14 +00:00
parent f3bf43f443
commit 828212b59f

View File

@ -692,7 +692,7 @@ static uint32_t get_image(mp_image_t *mpi) {
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,