[MPlayer-cvslog] r19940 - trunk/libvo/vo_gl.c
reimar
subversion at mplayerhq.hu
Fri Sep 22 21:58:43 CEST 2006
Author: reimar
Date: Fri Sep 22 21:58:43 2006
New Revision: 19940
Modified:
trunk/libvo/vo_gl.c
Log:
Modify clearEOSD to make experimenting easier
Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c (original)
+++ trunk/libvo/vo_gl.c Fri Sep 22 21:58:43 2006
@@ -230,13 +230,14 @@
* \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;
}
/**
More information about the MPlayer-cvslog
mailing list