diff libvo/vo_gl.c @ 17871:29cce29b0cd9

do not call glDeleteTextures with 0 count, Xgl does not like it.
author reimar
date Wed, 15 Mar 2006 12:15:35 +0000
parents f580a7755ac5
children 3bf109509189
line wrap: on
line diff
--- a/libvo/vo_gl.c	Wed Mar 15 09:04:24 2006 +0000
+++ b/libvo/vo_gl.c	Wed Mar 15 12:15:35 2006 +0000
@@ -205,6 +205,8 @@
  */
 static void clearOSD(void) {
   int i;
+  if (!osdtexCnt)
+    return;
   glDeleteTextures(osdtexCnt, osdtex);
 #ifndef FAST_OSD
   glDeleteTextures(osdtexCnt, osdatex);