From 1014da2101c3338058728009323537f1c34c6934 Mon Sep 17 00:00:00 2001 From: reimar Date: Fri, 22 Sep 2006 20:16:36 +0000 Subject: use eosdDispList != 0 to check if eosd should be drawn instead of eosdtexCnt > 0 in preparation of upcoming patch git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19942 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_gl.c b/libvo/vo_gl.c index 5a8de962d3..600c9c3b97 100644 --- a/libvo/vo_gl.c +++ b/libvo/vo_gl.c @@ -586,7 +586,7 @@ flip_page(void) if (image_format == IMGFMT_YV12) glDisableYUVConversion(gl_target, yuvconvtype); - if (osdtexCnt > 0 || eosdtexCnt > 0) { + if (osdtexCnt > 0 || eosdDispList) { // set special rendering parameters if (!scaled_osd) { glMatrixMode(GL_PROJECTION); @@ -595,7 +595,7 @@ flip_page(void) glOrtho(0, vo_dwidth, vo_dheight, 0, -1, 1); } glEnable(GL_BLEND); - if (eosdtexCnt > 0) { + if (eosdDispList) { glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glCallList(eosdDispList); } -- cgit v1.2.3