On Fri Jun 28 12:13:29 2024 +0000, Alexandros Frantzis wrote:
changed this line in [version 2 of the diff](/wine/wine/-/merge_requests/5933/diffs?diff_id=119918&start_sha=53e08c7938cec9e6899c8b820e3dbda8a274dea8#50d0467261bda62e69cb439805b6af18beaf754b_709_736)
I have kept the static allocation, added an assertion but I am now deduplicating attributes, keeping the last value specified.
This matches AMD and Intel behavior, but NVIDIA acts more erratically when it gets duplicates: for numerical attributes it seems to [apply the stricter constraint](https://testbot.winehq.org/JobDetails.pl?Key=146638&f101=exe64.report&am...) but for other kinds of attributes it sometimes prefers one of the values and it [works](https://testbot.winehq.org/JobDetails.pl?Key=146637&f101=exe64.report&am...) but other times it just [fails](https://testbot.winehq.org/JobDetails.pl?Key=146642&f102=exe64.report#k1...).
Note that the above runs are using an adapted version of wglchoose.exe that passes duplicate attributes to the WGL attrib list (the previous version deduplicated itself before passing).