mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 05:37:37 +00:00
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
This commit is contained in:
parent
4e6749d0ef
commit
1014da2101
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user