Keith Packard wrote:
> The NAME(line) function template in s_aalinetemp.h loop over the
> fragment attributes. A bounds check in this functions to perform some
> texture-specific computations checks only to ensure that the attribute
> is < FRAG_ATTRIB_VAR0, but not >= FRAG_ATTRIB_TEX0. This causes the code
> to compute a negative index on the Texture unit array and general chaos
> ensues.
> 
> That's as good a description as I can construct reading just the local
> code. I found a nice segfault in 'scorched3d'. Reviewing the code, I
> found several additional instances of the same pattern, so I've patched
> all of them. This patch is against current master; if it looks OK, I can
> push it.

Thanks, Keith.  I've commited your patch.

I'm actually rewriting much of this code on a local branch.  It'll all 
be much cleaner/simpler in the future...

-Brian

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to