[RESEND] [d3d] Light management API fix to handle an unlimited number of lights

2005-06-06 Thread Antoine Chavasse
Resend of http://www.winehq.org/hypermail/wine-patches/2005/06/0103.html, adapted to Christian's reorganisation of ddraw directory, and as attachment to avoid gmail word-wrapping the patch :) ChangeLog: - Rewrote the light management API to allow for an unlimited amount of lights to be set, and o

Re: [d3d] Light management API fix to handle an unlimited number of lights

2005-06-05 Thread Antoine Chavasse
On 6/5/05, Christian Costa <[EMAIL PROTECTED]> wrote: > > May I ask you to wait a little until I finish reorganizing the DDraw > directory? > This task involves file renaming so if your patch is aplly later, we can > save the history > of your modifications. :-) > Ok. I'll resubmit it when you'

Re: [d3d] Light management API fix to handle an unlimited number of lights

2005-06-05 Thread Christian Costa
Antoine Chavasse wrote: Direct3D allows to set any number of light, and limits the number of lights that can be active at the same time. The current wine code allows to setup only 16 lights. It made Anarchy Online crash, because it tried to setup more lights than that and didn't like to get ret