[MPlayer-cvslog] CVS: main/libvo gl_common.h, 1.10, 1.11 vo_gl.c, 1.84, 1.85

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Aug 16 21:07:09 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv7469/libvo

Modified Files:
	gl_common.h vo_gl.c 
Log Message:
Our buffer usage actually fits better to GL_DYNAMIC_DRAW than GL_STREAM_DRAW.


Index: gl_common.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/gl_common.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- gl_common.h	16 Aug 2005 17:57:53 -0000	1.10
+++ gl_common.h	16 Aug 2005 19:07:07 -0000	1.11
@@ -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

Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -r1.84 -r1.85
--- vo_gl.c	16 Aug 2005 18:52:38 -0000	1.84
+++ vo_gl.c	16 Aug 2005 19:07:07 -0000	1.85
@@ -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??




More information about the MPlayer-cvslog mailing list