X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ftrivial%2Ftri-unfilled-userclip-stip.c;h=ddc0dffd4f4ae6abbe94ca21b40764da7d7919b6;hb=41482a6461fadc0113f39f0e81f9fb91248faa8a;hp=4aefa85032f824e38d879431229795cc38fb4a74;hpb=2382dc8aff9983da9ef1be03de38d4ab82105b19;p=mesa.git diff --git a/progs/trivial/tri-unfilled-userclip-stip.c b/progs/trivial/tri-unfilled-userclip-stip.c index 4aefa85032f..ddc0dffd4f4 100644 --- a/progs/trivial/tri-unfilled-userclip-stip.c +++ b/progs/trivial/tri-unfilled-userclip-stip.c @@ -41,6 +41,7 @@ static void Init(void) fprintf(stderr, "GL_RENDERER = %s\n", (char *) glGetString(GL_RENDERER)); fprintf(stderr, "GL_VERSION = %s\n", (char *) glGetString(GL_VERSION)); fprintf(stderr, "GL_VENDOR = %s\n", (char *) glGetString(GL_VENDOR)); + fflush(stderr); glClearColor(0.0, 0.0, 1.0, 0.0); glClipPlane(GL_CLIP_PLANE0, plane); @@ -133,7 +134,7 @@ int main(int argc, char **argv) type |= (doubleBuffer) ? GLUT_DOUBLE : GLUT_SINGLE; glutInitDisplayMode(type); - if (glutCreateWindow("First Tri") == GL_FALSE) { + if (glutCreateWindow(*argv) == GL_FALSE) { exit(1); }