aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 21:16:14 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-04 21:16:14 +0000
commit828212b59f2f76ead0ab859c911c8bb81fc409b5 (patch)
tree7c43a174ab3d00ebd4c65dd03d02f0c0bd644328 /libvo
parentf3bf43f443e8c5435cb2467514ad1c5af19fd0bb (diff)
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
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index d9097302c3..7e559cd256 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -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,