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

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

 



On Tue, 15 Feb 2005, Willing, John (J.K.) wrote:
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) {

As of 4.4.99.19, this problem has already been fixed.

Marc.

+----------------------------------+-----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310           |
|  Computing and Network Services  |  fax:    1-780-492-1729           |
|  352 General Services Building   |  email:  tsi@xxxxxxxxxxx          |
|  University of Alberta           +-----------------------------------+
|  Edmonton, Alberta               |                                   |
|  T6G 2H1                         |     Standard disclaimers apply    |
|  CANADA                          |                                   |
+----------------------------------+-----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
_______________________________________________
XFree86 mailing list
XFree86@xxxxxxxxxxx
http://XFree86.Org/mailman/listinfo/xfree86

[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