--- ray/src/hd/rhd_glx.c 1997/12/26 14:46:21 3.5 +++ ray/src/hd/rhd_glx.c 1997/12/26 16:50:03 3.7 @@ -161,7 +161,6 @@ char *id; /* map the window */ XMapWindow(ourdisplay, gwind); dev_input(); /* sets size and view angles */ - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); /* allocate our leaf pile */ if (!qtAllocLeaves(2 * DisplayWidth(ourdisplay,ourscreen) * DisplayHeight(ourdisplay,ourscreen) / @@ -627,6 +626,8 @@ static resizewindow(ersz) /* resize window */ register XConfigureEvent *ersz; { + glViewport(0, 0, ersz->width, ersz->height); + if (ersz->width == odev.hres && ersz->height == odev.vres) return; @@ -635,8 +636,6 @@ register XConfigureEvent *ersz; odev.v.horiz = 2.*180./PI * atan(0.5/VIEWDIST*pwidth*odev.hres); odev.v.vert = 2.*180./PI * atan(0.5/VIEWDIST*pheight*odev.vres); - - glViewport(0, 0, odev.hres, odev.vres); inpresflags |= DFL(DC_SETVIEW); }