changeset 19934:864dcc4f0408

Modify clearEOSD to make experimenting easier
author reimar
date Fri, 22 Sep 2006 19:58:43 +0000
parents 2c552f298f0d
children 698b1d68ac83
files libvo/vo_gl.c
diffstat 1 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Fri Sep 22 19:15:40 2006 +0000
+++ b/libvo/vo_gl.c	Fri Sep 22 19:58:43 2006 +0000
@@ -230,13 +230,14 @@
  * \brief remove textures, display list and free memory used by EOSD
  */
 static void clearEOSD(void) {
-  if (!eosdtexCnt)
-    return;
-  glDeleteTextures(eosdtexCnt, eosdtex);
+  if (eosdDispList)
+    glDeleteLists(eosdDispList, 1);
+  eosdDispList = 0;
+  if (eosdtexCnt)
+    glDeleteTextures(eosdtexCnt, eosdtex);
+  eosdtexCnt = 0;
   free(eosdtex);
   eosdtex = NULL;
-  glDeleteLists(eosdDispList, 1);
-  eosdtexCnt = 0;
 }
 
 /**