[MPlayer-cvslog] CVS: main/libvo vo_gl.c,1.114,1.115

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Mar 15 13:15:38 CET 2006


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	vo_gl.c 
Log Message:
do not call glDeleteTextures with 0 count, Xgl does not like it.


Index: vo_gl.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_gl.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- vo_gl.c	9 Feb 2006 14:07:59 -0000	1.114
+++ vo_gl.c	15 Mar 2006 12:15:35 -0000	1.115
@@ -205,6 +205,8 @@
  */
 static void clearOSD(void) {
   int i;
+  if (!osdtexCnt)
+    return;
   glDeleteTextures(osdtexCnt, osdtex);
 #ifndef FAST_OSD
   glDeleteTextures(osdtexCnt, osdatex);




More information about the MPlayer-cvslog mailing list