Mercurial > mplayer.hg
diff libvo/gl_common.c @ 34375:5b44af093b2a
vo_gl stereo: allow swapping left and right view.
author | reimar |
---|---|
date | Fri, 23 Dec 2011 22:34:42 +0000 |
parents | 4a507d3a039a |
children | 8e09f1cb3ecd |
line wrap: on
line diff
--- a/libvo/gl_common.c Fri Dec 23 21:52:04 2011 +0000 +++ b/libvo/gl_common.c Fri Dec 23 22:34:42 2011 +0000 @@ -1590,6 +1590,8 @@ void glEnable3DLeft(int type) { GLint buffer; + if (type & GL_3D_SWAP) + return glEnable3DRight(type & ~GL_3D_SWAP); switch (type) { case GL_3D_RED_CYAN: mpglColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_FALSE); @@ -1618,6 +1620,8 @@ void glEnable3DRight(int type) { GLint buffer; + if (type & GL_3D_SWAP) + return glEnable3DLeft(type & ~GL_3D_SWAP); switch (type) { case GL_3D_RED_CYAN: mpglColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_FALSE);