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:
1 parent
7e6c29c530
commit
dfa61db50a
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user