[MPlayer-cvslog] r37716 - trunk/libvo/gl_common.c

reimar subversion at mplayerhq.hu
Sat Feb 13 20:23:08 CET 2016


Author: reimar
Date: Sat Feb 13 20:23:08 2016
New Revision: 37716

Log:
gl_common: Fix return with argument in function returning void.

Modified:
   trunk/libvo/gl_common.c

Modified: trunk/libvo/gl_common.c
==============================================================================
--- trunk/libvo/gl_common.c	Sat Feb 13 20:00:15 2016	(r37715)
+++ trunk/libvo/gl_common.c	Sat Feb 13 20:23:08 2016	(r37716)
@@ -1941,8 +1941,10 @@ void glSetupAlphaStippleTex(unsigned pat
 
 void glEnable3DLeft(int type) {
   GLint buffer;
-  if (type & GL_3D_SWAP)
-    return glEnable3DRight(type & ~GL_3D_SWAP);
+  if (type & GL_3D_SWAP) {
+    glEnable3DRight(type & ~GL_3D_SWAP);
+    return;
+  }
   switch (type) {
     case GL_3D_RED_CYAN:
       mpglColorMask(GL_TRUE,  GL_FALSE, GL_FALSE, GL_FALSE);
@@ -1978,8 +1980,10 @@ void glEnable3DLeft(int type) {
 
 void glEnable3DRight(int type) {
   GLint buffer;
-  if (type & GL_3D_SWAP)
-    return glEnable3DLeft(type & ~GL_3D_SWAP);
+  if (type & GL_3D_SWAP) {
+    glEnable3DLeft(type & ~GL_3D_SWAP);
+    return;
+  }
   switch (type) {
     case GL_3D_RED_CYAN:
       mpglColorMask(GL_FALSE, GL_TRUE,  GL_TRUE,  GL_FALSE);


More information about the MPlayer-cvslog mailing list