OSD textures can be deleted with one function call...

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16237 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-08-16 18:52:38 +00:00
parent 7e6c29c530
commit dfa61db50a
1 changed files with 3 additions and 3 deletions

View File

@ -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;