Problem with programs/Xserver/GL/glx/glxcmds.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: Problem with programs/Xserver/GL/glx/glxcmds.c

While running with a commercial CAD program, we encountered a problem with the OpenGL libraries.

In Function DoMakeCurrent
640   if (prevglxc) {
641      if (prevglxc->drawPixmap) {
642         if (prevglxc->drawPixmap != prevglxc->readPixmap) {
643                  /*
644                  ** The previous drawable was a glx pixmap, release it.
645                  */
646                  prevglxc->readPixmap->refcnt--;

We came across a problem where prevglxc->readPixmap is NULL causing a Segmentation Fault at line 646.  I resolved the issue by changing line 641 to:

641          if (prevglxc->drawPixmap && prevglxc->readPixmap) {

John Willing


[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux