changeset 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 d5971cc55b39
children a05b9e4da7b8
files libvo/vo_gl.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);