[MPlayer-cvslog] r19942 - trunk/libvo/vo_gl.c

reimar subversion at mplayerhq.hu
Fri Sep 22 22:16:36 CEST 2006


Author: reimar
Date: Fri Sep 22 22:16:36 2006
New Revision: 19942

Modified:
   trunk/libvo/vo_gl.c

Log:
use eosdDispList != 0 to check if eosd should be drawn instead of eosdtexCnt > 0
in preparation of upcoming patch


Modified: trunk/libvo/vo_gl.c
==============================================================================
--- trunk/libvo/vo_gl.c	(original)
+++ trunk/libvo/vo_gl.c	Fri Sep 22 22:16:36 2006
@@ -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);
     }



More information about the MPlayer-cvslog mailing list