[MPlayer-cvslog] r27215 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Sun Jul 6 09:53:36 CEST 2008
Author: reimar
Date: Sun Jul 6 09:53:36 2008
New Revision: 27215
Log:
Move at-hack code a bit up for further changes
Modified:
trunk/libvo/vo_gl.c
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Sun Jul 6 09:53:36 2008
@@ -688,14 +688,14 @@ static uint32_t get_image(mp_image_t *mp
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,
More information about the MPlayer-cvslog
mailing list