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

Christian Costa titan.costa at wanadoo.fr
Sun Jun 5 15:36:45 CDT 2005

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 returned an error when doing so.
>This patch is a rewrite of the d3d light management api and some related code.
>Another patch with test cases for the light api will follow.
> - Rewrote the light management API to allow for an unlimited amount
>of lights to be set,
>   and only a subset of them to be enabled.
Hi Antoine,

May I ask you to wait a little until I finish reorganizing the DDraw 
This task involves file renaming so if your patch is aplly later, we can 
save the history
of your modifications. :-)


More information about the wine-devel mailing list