Эх сурвалжийг харах

small bug in examples

Former-commit-id: 749e52b59a32f4a913870b6fc6726511c20f245f
Alec Jacobson (jalec 11 жил өмнө
parent
commit
52a02898c5

+ 1 - 0
examples/colored-mesh/example.cpp

@@ -347,6 +347,7 @@ void mouse(int glutButton, int glutState, int mouse_x, int mouse_y)
           }
         break;
       }
+      break;
     }
     // Scroll down
     case 3:

+ 2 - 1
examples/textured-mesh/example.cpp

@@ -390,8 +390,9 @@ void mouse(int glutButton, int glutState, int mouse_x, int mouse_y)
             down_x = mouse_x;
             down_y = mouse_y;
           }
-        break;
+          break;
       }
+      break;
     }
     // Scroll down
     case 3: