Mercurial > mplayer.hg
changeset 16237:b951a75d4f83
Our buffer usage actually fits better to GL_DYNAMIC_DRAW than GL_STREAM_DRAW.
author | reimar |
---|---|
date | Tue, 16 Aug 2005 19:07:07 +0000 |
parents | 042f5c461c44 |
children | 619eb5ebb0c4 |
files | libvo/gl_common.h libvo/vo_gl.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/gl_common.h Tue Aug 16 18:52:38 2005 +0000 +++ b/libvo/gl_common.h Tue Aug 16 19:07:07 2005 +0000 @@ -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
--- a/libvo/vo_gl.c Tue Aug 16 18:52:38 2005 +0000 +++ b/libvo/vo_gl.c Tue Aug 16 19:07:07 2005 +0000 @@ -439,7 +439,7 @@ 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??