summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-16 18:52:38 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-08-16 18:52:38 +0000
commitdfa61db50a0f8b4720cbdb21714bb992d511efa5 (patch)
treeb02b79ac1a881f7b9c84890a5f87b71255b574f0 /libvo
parent7e6c29c530b3298ce3d0f682a5ae536f1f449b83 (diff)
downloadmpv-dfa61db50a0f8b4720cbdb21714bb992d511efa5.tar.bz2
mpv-dfa61db50a0f8b4720cbdb21714bb992d511efa5.tar.xz
OSD textures can be deleted with one function call...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16237 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c6
1 files 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;