John A. Collier (jcollier++at++alexandra.mtl.com)
Sun, 2 Oct 1994 12:55:00 -0400
void
updateMyShmem(void)
{ int index;
extern geoset_list[100];
extern geoset_index;
extern gstate_list[100];
pfGeoState *gstate;
pfGeoSet *gset;
pfMaterial *mtl;
long prim_type;
long *answer;
void *arena;
arena=pfGetSharedArena();
gset = (pfGeoSet *)geoset_list[0];
gstate= (pfGeoState *)gstate_list[0];
pfLoadGState(gstate);
mtl=pfNewMtl(NULL);
mtl=pfGetCurMtl(PFMTL_FRONT); <- Seg. Violation here
}
This is probably a really simple problem, but I am rather new to Performer.
Any help would be extremely appreciated. I have checked the sample code in
Performer to no avail.
Thanks,
John
-- John A. Collier e-mail: jcollier++at++mtl.com MTL Systems, Inc. voice: (513) 426-3111 3481 Dayton-Xenia Rd. fax: (513) 426-8301 Dayton, OH 45432-2796
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:38 PDT