Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sgi!tarolli@riva.esd.sgi.com From: tarolli@riva.esd.sgi.com (Gary Tarolli) Newsgroups: comp.sys.sgi Subject: Re: shademodel Summary: call winopen first Keywords: GL Message-ID: <50750@sgi.sgi.com> Date: 14 Feb 90 22:30:09 GMT References: <2548@fs1.cam.nist.gov> Sender: tarolli@riva.esd.sgi.com Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 18 In article <2548@fs1.cam.nist.gov>, blue@cam.nist.gov (Jim Blue) writes: > I just got my Personal Iris and was trying to run the examples in the > Graphics Library Programming Guide. The very first example bombed with > Segmentation Error. The offending line is > shademodel(FLAT); > If I take out this line, it works. Doing > shademodel((long)FLAT); > doesn't help. > > Does shademodel work for others? The usual explanation for this is that you called shademodel() before winopen. Only a few of the window hints are legal to call before winopen. The others require that there be a current window. From your description I cannot tell if this is what you did, but it sure sounds like it. -- Gary Tarolli