From dfa61db50a0f8b4720cbdb21714bb992d511efa5 Mon Sep 17 00:00:00 2001 From: reimar Date: Tue, 16 Aug 2005 18:52:38 +0000 Subject: [PATCH] OSD textures can be deleted with one function call... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16237 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index dab44216ab..09dc5f02d3 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -359,11 +359,11 @@ static void draw_osd(void) 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;