summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-15 12:15:35 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-03-15 12:15:35 +0000
commitcf1e2325c3ca02c8b4678df5339b02301657be69 (patch)
treee1900bf03b57726b24cf22d6440088ad3c062405 /libvo
parentb18fadfe634930d53897fabef66f3cec6f3aec65 (diff)
downloadmpv-cf1e2325c3ca02c8b4678df5339b02301657be69.tar.bz2
mpv-cf1e2325c3ca02c8b4678df5339b02301657be69.tar.xz
do not call glDeleteTextures with 0 count, Xgl does not like it.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17872 b3059339-0415-0410-9bf9-f77b7e298cf2
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);