From 2dd3f3f55a1a676ec83f3c48b3c251f9d9999931 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 22 Sep 2006 19:58:43 +0000 Subject: Modify clearEOSD to make experimenting easier git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19940 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libvo') 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; } /** -- cgit v1.2.3