# HG changeset patch # User reimar # Date 1126460712 0 # Node ID c35ed5cdf07eba557c47db9464ceda3bdabb659e # Parent 5ab14fa7a019106287f4b7a68bef5c288cd783d9 Respect -nodouble even though it looks very bad. diff -r 5ab14fa7a019 -r c35ed5cdf07e libvo/vo_gl.c --- 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); }