X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=apps%2Fgl%2Fvarray.c;h=27cf8a1c37bdd677ccdac18a2fa9f5adce78aecf;hp=edc09fe8c1fad81a3a16e8946bb29a302e34c155;hb=68f16d73f902506982815195220215866640ccdb;hpb=ad4111800b9b4b2998a24db5b6834e3df85d76e6 diff --git a/apps/gl/varray.c b/apps/gl/varray.c index edc09fe..27cf8a1 100644 --- a/apps/gl/varray.c +++ b/apps/gl/varray.c @@ -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,10 +175,10 @@ 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); - glutInitWindowPosition(100, 100); win = glutCreateWindow(argv[0]); init(); glutDisplayFunc(display);