|
From: Sean M. <se...@ro...> - 2006-05-15 18:36:11
|
Hi all,
Up to recently I've been using Quesa 1.7 from CVS of 2006-03-28. Now
I'm trying 1.8 and now my app crashes. The code is:
=09TQ3ShaderObject=09shader =3D Q3NULLIllumination=5FNew();
=09TQ3PolygonData=09polygon=5Fdata;
=09polygon=5Fdata.numVertices =3D ...;
=09polygon=5Fdata.vertices =3D ...;
=09polygon=5Fdata.polygonAttributeSet =3D Q3AttributeSet=5FNew();
=09Q3AttributeSet=5FAdd( polygon=5Fdata.polygonAttributeSet,
kQ3AttributeTypeSurfaceShader,
&shader );
And then in E3Set::Add() (called by Q3AttributeSet=5FAdd) this assertion =
fires:
=09Q3=5FASSERT( Q3Object=5FIsType (
setData.attributes.surfaceShader,
=09=09=09 kQ3ShaderTypeSurface ) ) ;
It crashes a few lines later. I'm not sure if I built 1.7 with
assertions, but there was no crash then.
Is this not the right way to add a null shader=3F Our goal is to add a
null illumination shader to a polygon object.
Thanks for any advice!
--
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Sean McBride, B. Eng se...@ro...
Rogue Research www.rogue-research.com
Mac Software Developer Montr=E9al, Qu=E9bec, Canada
|