summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-07 13:07:48 +0300
committerUoti Urpala <uau@symbol.nonexistent.invalid>2008-05-07 13:15:37 +0300
commit267a3f4c9c00848f32c341595d2d831157a79bee (patch)
treecdef15bb746e3a41b1813076f24035fcc8385c30 /libvo
parent5484215d044522bcd30516e458e421f403ca8e35 (diff)
parent96fa9c4e249e9467f21e32191882e511e762fb1f (diff)
downloadmpv-267a3f4c9c00848f32c341595d2d831157a79bee.tar.bz2
mpv-267a3f4c9c00848f32c341595d2d831157a79bee.tar.xz
Merge svn changes up to r26680
Conflicts: Makefile configure osdep/timer-darwin.c
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 82e27c8b62..291a2a3b8a 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -669,16 +669,14 @@ static uint32_t get_image(mp_image_t *mpi) {
return VO_FALSE;
}
if (mpi->flags & MP_IMGFLAG_READABLE) return VO_FALSE;
- if (mpi->type == MP_IMGTYPE_IP || mpi->type == MP_IMGTYPE_IPB)
- return VO_FALSE; // we can not provide readable buffers
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->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);