Mercurial > mplayer.hg
changeset 19936:f810e12fce63
use eosdDispList != 0 to check if eosd should be drawn instead of eosdtexCnt > 0
in preparation of upcoming patch
author | reimar |
---|---|
date | Fri, 22 Sep 2006 20:16:36 +0000 |
parents | 698b1d68ac83 |
children | 34796c9b8667 |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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); }