[MPlayer-cvslog] r27200 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Fri Jul 4 23:16:15 CEST 2008


Author: reimar
Date: Fri Jul  4 23:16:14 2008
New Revision: 27200

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


Modified:
   trunk/libvo/vo_gl.c

Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Fri Jul  4 23:16:14 2008
@@ -692,7 +692,7 @@ static uint32_t get_image(mp_image_t *mp
     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,



More information about the MPlayer-cvslog mailing list