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