Re: pfGetChanESky and pfGetCurLights

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 11/29/2000 19:10:43


Hello Yalin,

> I think there are two bugs in performer.

Yes. Both incorrectly assume that you never call a GET before a SET.
They will be fixed in the first maintenance release of 2.4

Thanks,
-yair

>
> First:
> ----
>
> if there is no pfEarthSky in pfChannel, an error occurs when calling the
>
> function pfGetChanESky():
>
> pfEarthSky *es;
> es = pfGetChanESky(chan);
>
> the pointer es it not NULL !!
>
>
> Seccond:
> -------
>
> pfLight* lightArray[PF_MAX_LIGHTS];
>
> for(i = 0; i < PF_MAX_LIGHTS; i++)
> lightArray[i] = NULL;
>
> numLights = pfGetCurLights(lightArray);
>
> The function pfGetCurLights() makes SEGFAULT, when no pfLights are set.
> But not in every program. I tried this with the sample program
> /usr/share/Performer/src/pguide/libpf/C/morph_engine.c
>
>
> Any help to handle this bugs would be appreciated.
>
> I am using the Performer 2.3.1 and Linux
>
> -----
> Yalin Kecik
> yalin.kecik++at++mchp.siemens.de
>
>
>
>
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>

-- 
\_________  \_____  \__    \__  \_____         Yair Kurzion
\_________  \_____   \__   \__  \_____         yair++at++sgi.com
       \__     \__   \____\__      \__   http://reality.sgi.com/yair
       \__          \__  \__                Work: (650) 933-6502
       \__          \__   \__               Home: (408) 226-9771
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Nov 29 2000 - 19:11:03 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.