Module: wine Branch: master Commit: bb82bc78f439ba92ae5a40979c8037dcb10477d4 URL: https://gitlab.winehq.org/wine/wine/-/commit/bb82bc78f439ba92ae5a40979c8037d...
Author: Zebediah Figura zfigura@codeweavers.com Date: Tue Jan 10 18:39:54 2023 -0600
wined3d: Use a string channel desc to initialize typed formats.
Avoid the need for manually set type attributes, and initialize the component count for all such formats.
This fixes use of R11G11B10_FLOAT as a vertex attribute format with the GL backend. Since it has no corresponding typeless format, prior to this commit the component count was uninitialized and hence use of the format would result in a GL error.
This fixes a GL error with Dark Souls Remastered. I did not immediately observe any corresponding rendering errors, however.
---
dlls/d3d10core/tests/d3d10core.c | 3 +- dlls/d3d11/tests/d3d11.c | 3 +- dlls/wined3d/utils.c | 173 +++++++++++++++++++-------------------- 3 files changed, 85 insertions(+), 94 deletions(-)