]> git.cworth.org Git - apitrace-tests/blobdiff - apps/gl/varray.c
Fix typo in varray app.
[apitrace-tests] / apps / gl / varray.c
index edc09fe8c1fad81a3a16e8946bb29a302e34c155..e415b351618c5d84116a3ac5ea312e31debdb1e5 100644 (file)
@@ -66,7 +66,7 @@ enum DerefMethod {
 };
 
 static enum SetupMethod setupMethod = POINTER;
-static enum DerefMethod derefMethod = DRAWARRAYS;
+static enum DerefMethod derefMethod = DRAWELEMENTS;
 
 static int win;
 
@@ -80,7 +80,7 @@ static void parseArgs(int argc, char** argv)
          setupMethod = POINTER;
       } else if (strcmp(arg, "interleaved") == 0) {
          setupMethod = INTERLEAVED;
-      } else if (strcmp(arg, "DRAWARRAYS") == 0) {
+      } else if (strcmp(arg, "drawarrays") == 0) {
          derefMethod = DRAWARRAYS;
       } else if (strcmp(arg, "arrayelement") == 0) {
          derefMethod = ARRAYELEMENT;
@@ -175,6 +175,7 @@ static void reshape(int w, int h)
 
 int main(int argc, char** argv)
 {
+   parseArgs(argc, argv);
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB);
    glutInitWindowSize(350, 350);