Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sgi!shinobu!odin!hellfire!ghelms From: ghelms@hellfire.sgi.com (Gretchen Helms) Newsgroups: comp.sys.sgi Subject: Re: shademodel Keywords: GL Message-ID: <4196@odin.SGI.COM> Date: 15 Feb 90 21:09:37 GMT References: <2548@fs1.cam.nist.gov> Sender: news@odin.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 29 (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. If you are referring to the sample program "red.c" on page I-5 in the Introduction, that is what we refer to as a "documentation bug", and already has a bug report filed on it by myself. >Does shademodel work for others? Essentially, the call to shademodel(FLAT) MUST occur AFTER the call to winopen. If you call it BEFORE winopen, it will toss its cookies and die. I will do my best to get this fixed in the next documentation update. G. "Murdock" Helms A host is a host & from coast to coast Silicon Graphics No one will talk to a host that's close Product Support Engineer Unless the host (that isn't close) ghelms@sgi.sgi.com Is busy, hung or dead. -D. Lesher