[GRASS-dev] Re: [GRASS GIS] #104: saving display to tiff or ppm
garbled when NVIZ is not top window
Glynn Clements
glynn at gclements.plus.com
Thu Mar 27 17:27:45 EDT 2008
GRASS GIS wrote:
> #104: saving display to tiff or ppm garbled when NVIZ is not top window
> ----------------------+-----------------------------------------------------
> Reporter: dylan | Owner: grass-dev at lists.osgeo.org
> Type: defect | Status: new
> Priority: minor | Milestone: 6.4.0
> Component: default | Version: svn-trunk
> Resolution: | Keywords: NVIZ openGL
> ----------------------+-----------------------------------------------------
> Comment (by msieczka):
>
> Glynn wrote:
>
> > Could you debug this?
>
> Here's debug output:
Could you repeat this, printing the values of variables as they are
assigned, i.e.:
> 319 vi = glXChooseVisual(dpy, scr, att);
> (gdb) next
> 320 if (vi == NULL) {
print *vi
> (gdb) next
> 325 ctx = glXCreateContext(dpy, vi, NULL, GL_FALSE);
> (gdb) next
> 326 if (ctx == NULL) {
print /x ctx
> (gdb) next
> 331 pixmap =
> (gdb) next
> 334 if (!pixmap) {
print /x pixmap
> (gdb) next
> 338 glxpixmap = glXCreateGLXPixmap(dpy, vi, pixmap);
> (gdb) next
> 339 if (!glxpixmap) {
print /x glxpixmap
The first one (*vi) is potentially the most significant.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list