Index: glxgears.c =================================================================== RCS file: /cvs/mesa/Mesa/progs/xdemos/glxgears.c,v retrieving revision 1.15 diff -u -r1.15 glxgears.c --- glxgears.c 16 May 2006 16:27:54 -0000 1.15 +++ glxgears.c 17 May 2006 18:09:06 -0000 @@ -473,7 +473,6 @@ switch (event.type) { case Expose: /* we'll redraw below */ - reshape(event.xexpose.width, event.xexpose.height); break; case ConfigureNotify: reshape(event.xconfigure.width, event.xconfigure.height); @@ -555,6 +554,7 @@ int main(int argc, char *argv[]) { + const int winWidth = 300, winHeight = 300; Display *dpy; Window win; GLXContext ctx; @@ -589,7 +589,7 @@ return -1; } - make_window(dpy, "glxgears", 0, 0, 300, 300, &win, &ctx); + make_window(dpy, "glxgears", 0, 0, winWidth, winHeight, &win, &ctx); XMapWindow(dpy, win); glXMakeCurrent(dpy, win, ctx); @@ -602,6 +602,9 @@ init(); + /* Set initial projection/viewing transformation */ + reshape(winWidth, winHeight); + event_loop(dpy, win); glDeleteLists(gear1, 1);