Brian Paul [2006-05-29 08:36]:
> Jesse Allen wrote:
> >A recent change to arbprogparse.c on Apr 28 is causing references to vertex 
> >attrib zero to crash. I'm not entirely sure on how it is supposed to be
> >handled now, but my guess from trial and error is found below. Someone please
> >take a look.
> >Changes:
> >Be more strict on the vertex attrib array bounds and use an absolute zero for
> >vertex attrib zero.
> 
> Thanks for the patch.  Looks good - I'll check it in.

I think the first chunk of changes introduced by this patch is
unnecessary.

parse_generic_attrib_num() already checks whether the vertex attrib
number is >= MAX_VERTEX_PROGRAM_ATTRIBS, in which case it returns 1. So
the second check (the one introduced by the patch) is never executed.

Maybe I'm missing something though.

Regards,
Tilman

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?

Attachment: pgp7mDUQLpvu6.pgp
Description: PGP signature

Reply via email to