summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-22 19:58:43 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-22 19:58:43 +0000
commit2dd3f3f55a1a676ec83f3c48b3c251f9d9999931 (patch)
tree39566d279440c5845810e81543b3575990db1291 /libvo
parent0c8fc56f346db051b41aba6346e6f529824f4998 (diff)
downloadmpv-2dd3f3f55a1a676ec83f3c48b3c251f9d9999931.tar.bz2
mpv-2dd3f3f55a1a676ec83f3c48b3c251f9d9999931.tar.xz
Modify clearEOSD to make experimenting easier
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19940 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index 733be27a0f..fbc2b6cfda 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -230,13 +230,14 @@ static void clearOSD(void) {
* \brief remove textures, display list and free memory used by EOSD
*/
static void clearEOSD(void) {
- if (!eosdtexCnt)
- return;
- glDeleteTextures(eosdtexCnt, eosdtex);
+ if (eosdDispList)
+ glDeleteLists(eosdDispList, 1);
+ eosdDispList = 0;
+ if (eosdtexCnt)
+ glDeleteTextures(eosdtexCnt, eosdtex);
+ eosdtexCnt = 0;
free(eosdtex);
eosdtex = NULL;
- glDeleteLists(eosdDispList, 1);
- eosdtexCnt = 0;
}
/**