[MPlayer-cvslog] r26654 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Sat May 3 16:11:19 CEST 2008
Author: reimar
Date: Sat May 3 16:11:19 2008
New Revision: 26654
Log:
Fix 100l: mpi->height must be used to calculate required memory, not mpi->h.
Modified:
trunk/libvo/vo_gl.c
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Sat May 3 16:11:19 2008
@@ -675,10 +675,10 @@ static uint32_t get_image(mp_image_t *mp
GenBuffers(1, &gl_buffer);
BindBuffer(GL_PIXEL_UNPACK_BUFFER, gl_buffer);
mpi->stride[0] = mpi->width * mpi->bpp / 8;
- if (mpi->stride[0] * mpi->h > gl_buffersize) {
- BufferData(GL_PIXEL_UNPACK_BUFFER, mpi->stride[0] * mpi->h,
+ if (mpi->stride[0] * mpi->height > gl_buffersize) {
+ BufferData(GL_PIXEL_UNPACK_BUFFER, mpi->stride[0] * mpi->height,
NULL, GL_DYNAMIC_DRAW);
- gl_buffersize = mpi->stride[0] * mpi->h;
+ gl_buffersize = mpi->stride[0] * mpi->height;
}
if (!gl_bufferptr)
gl_bufferptr = MapBuffer(GL_PIXEL_UNPACK_BUFFER, GL_WRITE_ONLY);
More information about the MPlayer-cvslog
mailing list