Mercurial > mplayer.hg
changeset 16458:c35ed5cdf07e
Respect -nodouble even though it looks very bad.
author | reimar |
---|---|
date | Sun, 11 Sep 2005 17:45:12 +0000 |
parents | 5ab14fa7a019 |
children | 2866304d5f4b |
files | libvo/vo_gl.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_gl.c Sun Sep 11 15:41:08 2005 +0000 +++ b/libvo/vo_gl.c Sun Sep 11 17:45:12 2005 +0000 @@ -164,6 +164,7 @@ glDepthMask(GL_FALSE); glDisable(GL_CULL_FACE); glEnable(gl_target); + glDrawBuffer(vo_doublebuffering?GL_BACK:GL_FRONT); mp_msg(MSGT_VO, MSGL_V, "[gl] Creating %dx%d texture...\n", texture_width, texture_height); @@ -429,13 +430,14 @@ // glFlush(); if (use_glFinish) glFinish(); + if (vo_doublebuffering) #ifdef GL_WIN32 SwapBuffers(vo_hdc); #else glXSwapBuffers( mDisplay,vo_window ); #endif - if (vo_fs && use_aspect) + if (vo_fs && use_aspect && vo_doublebuffering) glClear(GL_COLOR_BUFFER_BIT); }