X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=progs%2Ftrivial%2Flong-fixed-func.c;h=4b6c412f9e8105db0a9c61c8217a9b0e42021b8d;hb=41377942d321c6ff858a81241f01f9c15f9ca347;hp=88f4fe01ec8c16280a9b38ae154018d4069c831a;hpb=9644fa6c48f596875f6955728c3a8af1b01a5028;p=mesa.git diff --git a/progs/trivial/long-fixed-func.c b/progs/trivial/long-fixed-func.c index 88f4fe01ec8..4b6c412f9e8 100644 --- a/progs/trivial/long-fixed-func.c +++ b/progs/trivial/long-fixed-func.c @@ -5,7 +5,7 @@ -#define GL_GLEXT_PROTOTYPES +#include #include #include #include @@ -53,6 +53,7 @@ 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.3, 0.1, 0.3, 0.0); @@ -139,9 +140,10 @@ main(int argc, char **argv) glutInitWindowPosition(0, 0); glutInitWindowSize( 250, 250); glutInitDisplayMode(type); - if (glutCreateWindow("tri-long-fixedfunc") == GL_FALSE) { + if (glutCreateWindow(*argv) == GL_FALSE) { exit(1); } + glewInit(); glutReshapeFunc(Reshape); glutKeyboardFunc(Key); glutDisplayFunc(Draw);