summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/gl_common.h3
-rw-r--r--libvo/vo_gl.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/libvo/gl_common.h b/libvo/gl_common.h
index e4b8a7606c..32b8ea8a27 100644
--- a/libvo/gl_common.h
+++ b/libvo/gl_common.h
@@ -26,6 +26,9 @@
#ifndef GL_STREAM_DRAW
#define GL_STREAM_DRAW 0x88E0
#endif
+#ifndef GL_DYNAMIC_DRAW
+#define GL_DYNAMIC_DRAW 0x88E8
+#endif
#ifndef GL_WRITE_ONLY
#define GL_WRITE_ONLY 0x88B9
#endif
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 09dc5f02d3..9203dee5cf 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -439,7 +439,7 @@ static uint32_t get_image(mp_image_t *mpi) {
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,
- NULL, GL_STREAM_DRAW);
+ NULL, GL_DYNAMIC_DRAW);
gl_buffersize = mpi->stride[0] * mpi->h;
}
UnmapBuffer(GL_PIXEL_UNPACK_BUFFER); // HACK, needed for some MPEG4 files??