Mercurial > mplayer.hg
changeset 27183:46e043b71654
Move at-hack code a bit up for further changes
author | reimar |
---|---|
date | Sun, 06 Jul 2008 07:53:36 +0000 |
parents | f7b6d1014b6b |
children | a7d88d135561 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sun Jul 06 03:32:47 2008 +0000 +++ b/libvo/vo_gl.c Sun Jul 06 07:53:36 2008 +0000 @@ -688,14 +688,14 @@ return VO_FALSE; } if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE; - if (!gl_buffer) - GenBuffers(1, &gl_buffer); - BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); if (ati_hack) { int s = 1; while (s < mpi->width) s *= 2; mpi->width = s; } + if (!gl_buffer) + GenBuffers(1, &gl_buffer); + BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer); 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,