[GRASS5] Re: max res. PPM image dump from NVIZ
Glynn Clements
glynn.clements at virgin.net
Sat Aug 28 16:55:16 EDT 2004
Glynn Clements wrote:
> > > > X Error of failed request: GLXBadContextTag
> > > > Major opcode of failed request: 144 (GLX)
> > > > Minor opcode of failed request: 1 (X_GLXRender)
> > > > Serial number of failed request: 3736
> > > > Current serial number in output stream: 3737
> > >
> > > I can't reproduce this with 5.3, and I don't have an up-to-date 5.7
> > > built right now. Can you see if it happens for you with 5.3?
> >
> > Happens both with the latest 5.3 and 5.7.
> >
> > Just after it finishes writting the PPM, the low-res 'grid' is drawn,
> > but the southern 10-15% is missing. When you change the view angle you
> > are looking at a blank screen, when you finish it redraws the hi-res
> > 'polygon' version ok.
> >
> > -> Resizing the viewing window causes the above error (& crash).
>
> I can't reproduce this.
>
> However try moving the Destroy_OS_Ctx() call in do_zoom.c to *before*
> the point where it tries to redraw everything, i.e.:
>
> #if defined(HAVE_PBUFFERS) || defined(HAVE_PIXMAPS)
> Destroy_OS_Ctx();
> #endif
>
> /* Done */
> /* Reset viewport and draw orinanl view */
> GS_set_viewport(a_orig, c_orig, b_orig, d_orig);
> Ndraw_all_cmd(data, interp, argc, argv);
Duh. No, that won't work; the "makecurrent" operation has to occur
first.
Essentially, those lines need to be removed, and an Ndraw_all added to
the Tcl code after the makecurrent operation.
--
Glynn Clements <glynn.clements at virgin.net>
More information about the grass-dev
mailing list