summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-22 20:16:36 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-09-22 20:16:36 +0000
commit1014da2101c3338058728009323537f1c34c6934 (patch)
tree20ee9bbed1cbfb45124ac8281f9008e94c8da649
parent4e6749d0ef21b9d7b2562bdb381461ec17fe7234 (diff)
downloadmpv-1014da2101c3338058728009323537f1c34c6934.tar.bz2
mpv-1014da2101c3338058728009323537f1c34c6934.tar.xz
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
-rw-r--r--libvo/vo_gl.c4
1 files changed, 2 insertions, 2 deletions
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);
}