# HG changeset patch # User reimar # Date 1158956196 0 # Node ID f810e12fce634b0c58e436f81833aaae8bf45006 # Parent 698b1d68ac83de6f830f504bb94b922e54fc5b24 use eosdDispList != 0 to check if eosd should be drawn instead of eosdtexCnt > 0 in preparation of upcoming patch diff -r 698b1d68ac83 -r f810e12fce63 libvo/vo_gl.c --- a/libvo/vo_gl.c Fri Sep 22 20:13:21 2006 +0000 +++ b/libvo/vo_gl.c Fri Sep 22 20:16:36 2006 +0000 @@ -586,7 +586,7 @@ 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 @@ 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); }