here's a patch which fixes all remaining lighting problems (well those I
could see at a glance) with NWN on r200 (likely also fixes the same bugs
on radeon, untested). (I mentioned these problems earlier, the almost
black target indicator, the almost black (instead of blue) portals, the
main character didn't shine.)
I think the patch is pretty self-explanatory (basically if a color
material is enabled the light model changes, but it will never change
back when the material is disabled again), except I've also removed the
unnecessary calls to update_light_colors (and friends) (I believe they
were necessary before the recent other lighting fixes, don't worry they
still get called a bazillion of times, since r200/radeonColorMaterial is
only called when r200/radeonUpdateMaterial is called right after that it
should be really safe to remove these calls.)
nwn is still a bit slow though, I'm working on that ;-).
P.S: Hoping this message appears on the list sometime before April 2005
or so, this <censored> mailserver is such a POS.
P.P.S: Is someone going to apply the texstate fixes (required for
texrect), I can't keep track of all those changes here...