[MPlayer-cvslog] CVS: main/libvo vo_gl.c,1.83,1.84

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Aug 16 20:52:40 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	vo_gl.c 
Log Message:
OSD textures can be deleted with one function call...


Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -r1.83 -r1.84
--- vo_gl.c	16 Aug 2005 18:27:12 -0000	1.83
+++ vo_gl.c	16 Aug 2005 18:52:38 -0000	1.84
@@ -359,11 +359,11 @@
   if (vo_osd_changed(0)) {
     int i;
     int osd_h, osd_w;
-    for (i = 0; i < osdtexCnt; i++) {
-      glDeleteTextures(1, &osdtex[i]);
+    glDeleteTextures(osdtexCnt, osdtex);
 #ifndef FAST_OSD
-      glDeleteTextures(1, &osdatex[i]);
+    glDeleteTextures(osdtexCnt, osdatex);
 #endif
+    for (i = 0; i < osdtexCnt; i++) {
       glDeleteLists(osdDispList[i], 1);
     }
     osdtexCnt = 0;




More information about the MPlayer-cvslog mailing list