Mercurial > mplayer.hg
changeset 31810:41241a72f4d8
Use early return instead of large if block.
author | reimar |
---|---|
date | Sun, 01 Aug 2010 17:37:38 +0000 |
parents | 1c9d6499e37c |
children | 96494594ddea |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sun Aug 01 17:36:15 2010 +0000 +++ b/libvo/vo_gl.c Sun Aug 01 17:37:38 2010 +0000 @@ -760,7 +760,8 @@ static void do_render_osd(int type) { int draw_osd = (type & RENDER_OSD) && osdtexCnt > 0; int draw_eosd = (type & RENDER_EOSD) && eosdDispList; - if (draw_osd || draw_eosd) { + if (!draw_osd && !draw_eosd) + return; // set special rendering parameters if (!scaled_osd) { mpglMatrixMode(GL_PROJECTION); @@ -788,7 +789,6 @@ if (!scaled_osd) mpglPopMatrix(); mpglBindTexture(gl_target, 0); - } } static void draw_osd(void)