Răsfoiți Sursa

small bug in examples

Former-commit-id: 749e52b59a32f4a913870b6fc6726511c20f245f
Alec Jacobson (jalec 11 ani în urmă
părinte
comite
52a02898c5
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 1 0
      examples/colored-mesh/example.cpp
  2. 2 1
      examples/textured-mesh/example.cpp

+ 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: