X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=progs%2Ftest-shapes-gles1%2Ftest-shapes-gles1.c;fp=progs%2Ftest-shapes-gles1%2Ftest-shapes-gles1.c;h=ab26593d1809e436dee48ad033ee77e192968565;hb=19242860f0cd6d3f2c3e32e87e15fe5e1151d072;hp=e4d9122af1d4c2c8575ae8876fd3db2c40db1485;hpb=1c44434d29188fbfe47a2239c045f8059600ed42;p=freeglut diff --git a/progs/test-shapes-gles1/test-shapes-gles1.c b/progs/test-shapes-gles1/test-shapes-gles1.c index e4d9122..ab26593 100644 --- a/progs/test-shapes-gles1/test-shapes-gles1.c +++ b/progs/test-shapes-gles1/test-shapes-gles1.c @@ -37,6 +37,7 @@ */ #include +#include #include #include @@ -281,7 +282,8 @@ const GLfloat high_shininess[] = { 100.0f }; /* Program entry point */ -void init_resources() { +void init_context() { + printf("init_context\n"); fflush(stdout); glClearColor(1,1,1,1); glEnable(GL_CULL_FACE); glCullFace(GL_BACK); @@ -320,10 +322,10 @@ main(int argc, char *argv[]) glutSpecialFunc(special); glutIdleFunc(idle); glutMouseFunc(onMouseClick); + glutFixMyNameInitContextFunc(init_context); glutSetOption ( GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION ) ; - init_resources(); glutMainLoop(); #ifdef _MSC_VER