changeset 16236:042f5c461c44

OSD textures can be deleted with one function call...
author reimar
date Tue, 16 Aug 2005 18:52:38 +0000
parents 6a72f27e88d5
children b951a75d4f83
files libvo/vo_gl.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_gl.c	Tue Aug 16 18:27:12 2005 +0000
+++ b/libvo/vo_gl.c	Tue Aug 16 18:52:38 2005 +0000
@@ -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;