summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_gl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c
index e30ab107d3..e0d79bd98d 100644
--- a/libvo/vo_gl.c
+++ b/libvo/vo_gl.c
@@ -205,6 +205,8 @@ static void update_yuvconv(void) {
*/
static void clearOSD(void) {
int i;
+ if (!osdtexCnt)
+ return;
glDeleteTextures(osdtexCnt, osdtex);
#ifndef FAST_OSD
glDeleteTextures(osdtexCnt, osdatex);